• Create an HTTP LLM application instance with type validation.

    Create an IHttpLlmApplication instance which represents the LLM (Large Language Model) function calling application schema from the given Swagger/OpenAPI document and the target LLM model.

    By the way, even though this validateHttpLlmApplication function supports every version of Swagger/OpenAPI specification, there can be a type error in the given document. In that case, the function will return IValidation.IFailure instance with detailed type error tracing information.

    Type Parameters

    • Model extends Model

    Parameters

    • props: { document: unknown; model: Model; options?: Partial<IOptions<Model>> }

      Properties to create the HTTP LLM application instance

      • document: unknown

        Swagger/OpenAPI document.

      • model: Model

        Target LLM model.

      • Optionaloptions?: Partial<IOptions<Model>>

        Options for the LLM function calling schema composition.

    Returns IValidation<IHttpLlmApplication<Model>>

    Validation result of the HTTP LLM application composition

    Samchon