(schema: any)
| 32 | } |
| 33 | |
| 34 | function schemaLabel(schema: any): string { |
| 35 | if (!schema) return 'any'; |
| 36 | if (schema.$ref) return refName(schema.$ref) ?? 'object'; |
| 37 | if (schema.type === 'array') return `${schemaLabel(schema.items)}[]`; |
| 38 | return schema.type ?? (schema.properties ? 'object' : 'any'); |
| 39 | } |
| 40 | |
| 41 | export class OpenApiDigestTool extends Tool<z.infer<typeof Args>> { |
| 42 | name = 'openapi_digest'; |