(tools: Tools)
| 219 | * is reused. |
| 220 | */ |
| 221 | export const toDefinitions = (tools: Tools): ReadonlyArray<ToolDefinitionClass> => |
| 222 | Object.entries(tools).map( |
| 223 | ([name, item]) => |
| 224 | new ToolDefinition({ |
| 225 | name, |
| 226 | description: item._definition.description, |
| 227 | inputSchema: item._definition.inputSchema, |
| 228 | outputSchema: item._definition.outputSchema, |
| 229 | }), |
| 230 | ) |
| 231 | |
| 232 | const toJsonSchema = (schema: Schema.Top): JsonSchema.JsonSchema => { |
| 233 | const document = Schema.toJsonSchemaDocument(schema) |
no outgoing calls
no test coverage detected