Type Alias IClaudeSchema

Type schema info of the Claude.

IClaudeSchema is a type schema info of the Claude function calling.

IClaudeSchema seems fully supporting the JSON schema definition of the OpenAPI v3.1 specification; OpenApiV3_1.IJsonSchema. By the way, as the OpenApiV3_1.IJsonSchema has too much ambiguous and duplicated expressions, IClaudeSchema is designed to be clear and simple for the Claude function calling, by utilizng ILlmSchemaV3_1 which has been transformed from the OpenApi.IJsonSchema for the convenience and clarity.

Therefore, IClaudeSchema does not follow the entire specification of the OpenAPI v3.1. It has own specific restrictions and definitions. Here is the list of how ILlmSchemaV3_1 is different with the OpenAPI v3.1 JSON schema.

If compare with the OpenApi.IJsonSchema, the emended JSON schema specification,

For reference, if you've composed the IClaudeSchema type with the IClaudeSchema.IConfig.reference false option (default is false), only the recursive named types would be archived into the IClaudeSchema.IParameters.$defs, and the others would be escaped from the IClaudeSchema.IReference type.