Parameters
- props: { document: unknown; model: Model; options?: Partial<IOptions<Model>> }
document: unknown
Optional
options?: Partial<IOptions<Model>>
Returns IValidation<IHttpLlmApplication<Model>>
Validation result of the HTTP LLM application composition
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.