SDK reference · Rails
acpExtension
acpExtension in @provenanceauth/rails/acp, Rails. The extension for one completion: its capabilities.extensions declaration, the request-side identifier, and the field to spread into the complete request.
Signature
acpExtension(intentToken: string, opts: AcpExtensionOptions): { declaration: AcpExtensionDeclaration; identifier: string; field: { [ACP_EXTENSION_FIELD]: AcpProvenanceIntent } }Parameters
intentTokenstringRequiredoptsAcpExtensionOptionsRequired
Returns
{ declaration: AcpExtensionDeclaration; identifier: string; field: { [ACP_EXTENSION_FIELD]: AcpProvenanceIntent } }
HTTP operation
Runs locally, with no request to the API.