object
open_ai_server(Backend)
Backend- Application object implementingopen_ai_backend_protocol.
OpenAI-compatible REST server facade backed by an application object.
logtalk_load(open_ai(loader))static, context_switching_callspublic http_handler_protocolpublic open_api_provider_protocolpublic restPublic predicates
(no local declarations; see entity ancestors if any)
Protected predicates
open_api_info/1
Hook returning the OpenAPI information object for the server facade.
staticopen_api_info(Info)open_api_info(-compound) - oneopen_api_servers/1
Hook returning the OpenAPI server list for the local server facade.
staticopen_api_servers(Servers)open_api_servers(-list(compound)) - oneopen_api_security/1
Hook returning the OpenAPI security requirements for the server facade.
staticopen_api_security(Security)open_api_security(-list(compound)) - zero_or_oneopen_api_security_scheme/2
Hook enumerating OpenAPI security schemes for the server facade.
staticopen_api_security_scheme(Name,Scheme)open_api_security_scheme(?atom,?compound) - zero_or_moreopen_api_schema/2
Hook enumerating named OpenAPI schemas for the server facade.
staticopen_api_schema(Name,Schema)open_api_schema(?atom,?compound) - zero_or_moreendpoint/5
Hook enumerating REST endpoint descriptors derived from the generated OpenAI catalog.
staticendpoint(Id,Method,Path,Action,Options)endpoint(?atom,?atom,?atom,?atom,?list(compound)) - zero_or_moreopen_api_validate_request/1
Hook selecting operations whose requests should be validated against the OpenAPI contract.
staticopen_api_validate_request(Id)open_api_validate_request(?atom) - zero_or_moreopen_api_validate_response/1
Hook selecting operations whose responses should be validated against the OpenAPI contract.
staticopen_api_validate_response(Id)open_api_validate_response(?atom) - zero_or_moredispatch_open_ai/2
Dispatches a routed OpenAI request to the backend object and returns a REST result. Backend application errors should be returned as REST result terms; unexpected backend failure or error is left to the rest action failure handling.
staticdispatch_open_ai(Request,Result)dispatch_open_ai(+compound,--term) - onePrivate predicates
(no local declarations; see entity ancestors if any)
Operators
(none)