Properties to create the HTTP controller instance
Connection to the server.
Connection to the API server including the URL and headers.
Swagger/OpenAPI document.
Optional
execute?: (Executor of the API function.
Target LLM model.
Name of the controller.
Optional
options?: Partial<IOptions<Model>>Options for the LLM function calling schema composition.
Validation result of the HTTP controller composition
Create an HTTP controller with type validation.
Create an IAgenticaController.IHttp instance which represents the HTTP controller from the given Swagger/OpenAPI document and the target LLM model with connection information.
By the way, even though this
validateHttpController
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.