| 29 | |
| 30 | // this reflects json schema: https://json-schema.org/specification-links |
| 31 | interface JSONSchemaForFunctionParameter { |
| 32 | $schema?: string; |
| 33 | type: 'object'; |
| 34 | properties: { |
| 35 | [key: string]: { |
| 36 | type: string; |
| 37 | description?: string; |
| 38 | default?: unknown; |
| 39 | items?: JSONSchemaForFunctionParameter | JSONSchemaForFunctionParameter[]; |
| 40 | }; |
| 41 | }; |
| 42 | required?: string[]; |
| 43 | } |
| 44 | |
| 45 | export interface Tool { |
| 46 | state: () => Promise<toolStateType> | toolStateType; |
nothing calls this directly
no outgoing calls
no test coverage detected