Type Alias ILlmSchema

ILlmSchema:
    | ILlmSchema.IBoolean
    | ILlmSchema.IInteger
    | ILlmSchema.INumber
    | ILlmSchema.IString
    | ILlmSchema.IArray
    | ILlmSchema.IObject
    | ILlmSchema.IReference
    | ILlmSchema.IAnyOf
    | ILlmSchema.INull
    | ILlmSchema.IUnknown

Type schema info for LLM (Large Language Model) function calling.

ILlmSchema is a type schema info for LLM function calling, designed to be compatible with multiple LLM providers while following the JSON schema specification.

ILlmSchema basically follows the JSON schema definition of the OpenAPI v3.1 specification; OpenApiV3_1.IJsonSchema.

However, it deviates from the standard JSON schema specification and omits many features to ensure compatibility across different LLM providers and their function calling requirements.

Here is the list of how ILlmSchema is different with the OpenAPI v3.1 JSON schema:

Compared to OpenApi.IJsonSchema, the emended JSON schema specification:

When ILlmSchema.IConfig.strict mode is enabled, the schema transformation follows OpenAI's structured output requirements:

Jeongho Nam - https://github.com/samchon