@@ -79,15 +79,19 @@ export interface ToolCall {
export interface Tool {
type: string;
function: {
- name: string;
- description: string;
- parameters: {
- type: string;
- required: string[];
- properties: {
+ name?: string;
+ description?: string;
+ type?: string;
+ parameters?: {
+ $defs?: any;
+ items?: any;
+ required?: string[];
+ properties?: {
[key: string]: {
- type: string | string[];
+ type?: string | string[];
enum?: any[];
};