(input: Record<string, ToolInput> | undefined)
| 124 | } |
| 125 | |
| 126 | const tools = (input: Record<string, ToolInput> | undefined): ToolDefinition[] => |
| 127 | Object.entries(input ?? {}).map(([name, item]) => |
| 128 | ToolDefinition.make({ |
| 129 | name, |
| 130 | description: item.description ?? "", |
| 131 | inputSchema: schema(item.inputSchema), |
| 132 | }), |
| 133 | ) |
| 134 | |
| 135 | const generation = (input: RequestInput) => { |
| 136 | const result = { |