fix the note_creation tool

This commit is contained in:
perf3ct 2025-04-14 19:13:53 +00:00
parent 6f98e724a8
commit 7c97493b5c
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232
2 changed files with 22 additions and 3 deletions

View File

@ -44,7 +44,21 @@ export const noteCreationToolDefinition: Tool = {
},
attributes: {
type: 'array',
description: 'Array of attributes to set on the note (e.g., [{"name":"#tag"}, {"name":"priority", "value":"high"}])'
description: 'Array of attributes to set on the note (e.g., [{"name":"#tag"}, {"name":"priority", "value":"high"}])',
items: {
type: 'object',
properties: {
name: {
type: 'string',
description: 'Name of the attribute'
},
value: {
type: 'string',
description: 'Value of the attribute (optional)'
}
},
required: ['name']
}
}
},
required: ['title', 'content']

View File

@ -1,6 +1,6 @@
/**
* Tool Interfaces
*
*
* This file defines the interfaces for the LLM tool calling system.
*/
@ -27,6 +27,11 @@ export interface ToolParameter {
type: string;
description: string;
enum?: string[];
items?: ToolParameter | {
type: string;
properties?: Record<string, ToolParameter>;
required?: string[];
};
}
/**
@ -49,7 +54,7 @@ export interface ToolHandler {
* Tool definition to be sent to the LLM
*/
definition: Tool;
/**
* Execute the tool with the given arguments
*/