Slide 13
Slide 13 text
Provide Functionality
Generated Tool definition
{
"type": "function",
"className": "DialogComponent",
"classDocumentation": "",
"function": {
"name": "showNote",
"title": "showNote",
"type": "function",
"description": "Displays a note {@link Note} for the user to save, edit or discard.",
"parameters": {
"type": "object",
"properties": {
"data": {
"title": "data",
"description": "Note data that is displayed to the user.",
"type": "object",
"properties": {
"type": {
"description": "Field is used to Filter Data for this specific type. Must be 'Note'!",
"type": "string",
"const": "Note"
},
"title": { "description": "Title of this note", "type": "string" },
"tags": { "description": "List of topic of this note, comma separated", "type": "string" },
"text": { "description": "Actual text of this note, markdown preferred", "type": "string" },
"id": { "description": "GUID", "type": "string" },
"date": { "description": "UTC string", "type": "string" }
},
"required": [ "date", "id", "tags", "text", "title", "type" ],
"$schema": "http://json-schema.org/draft-07/schema#"
}
}
},
"method": "(data: Note) => void",
"returnType": "void",
"required": [ "data" ],
"decorators": []
}
}
Von 0 zu Smart, SPAs mit Generative AI aufwerten
Session
MaxOSchulte Thinktecture AG 13