(schema: ToolDefinition['inputSchema'])
| 56 | } |
| 57 | |
| 58 | function convertJsonSchemaToParameters(schema: ToolDefinition['inputSchema']) { |
| 59 | const properties: Record<string, unknown> = {} |
| 60 | for (const [key, prop] of Object.entries(schema.properties)) { |
| 61 | properties[key] = { ...prop } |
| 62 | } |
| 63 | return { |
| 64 | type: 'object' as const, |
| 65 | properties, |
| 66 | required: schema.required || [], |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | export interface AdaptToolsOptions { |
| 71 | maxToolResultTokens?: number |
no outgoing calls
no test coverage detected