The autonomy area has 6 methods on the client. Each takes one object of path, query and body arguments and an optional CallOptions, and returns a promise of the response body. A refused call rejects with OverlaneApiError (see the SDK index).
autonomyApprovalsAnswer
Approve or deny; an agent lists the evidence it checked and why, and cannot answer its own request
- Request:
POSTon/v1/tenants/{tenantId}/autonomy/approvals/{approvalId}/answer
autonomyApprovalsAnswer(args: { tenantId: string; approvalId: string; body: AnswerApprovalBody }, options?: CallOptions): Promise<AutonomyApproval>autonomyApprovalsCreate
Ask an independent agent or a person to approve an action in an action class
- Request:
POSTon/v1/tenants/{tenantId}/autonomy/approvals
autonomyApprovalsCreate(args: { tenantId: string; body: RequestApprovalBody }, options?: CallOptions): Promise<AutonomyApproval>autonomyApprovalsGet
Read one approval
- Request:
GETon/v1/tenants/{tenantId}/autonomy/approvals/{approvalId}
autonomyApprovalsGet(args: { tenantId: string; approvalId: string }, options?: CallOptions): Promise<AutonomyApproval>autonomyApprovalsList
Approvals, with who asked, who answered, the evidence and the reason
- Request:
GETon/v1/tenants/{tenantId}/autonomy/approvals
autonomyApprovalsList(args: { tenantId: string; query?: { status?: string } }, options?: CallOptions): Promise<AutonomyApprovalList>autonomyGet
The team’s autonomy mode, its overrides and what each action class asks for
- Request:
GETon/v1/tenants/{tenantId}/autonomy
autonomyGet(args: { tenantId: string }, options?: CallOptions): Promise<AutonomySettingsReply>autonomyPut
Change the autonomy mode (a safety class: an agent needs an independent approval)
- Request:
PUTon/v1/tenants/{tenantId}/autonomy - Needs an approval for agents: class
autonomy_change
autonomyPut(args: { tenantId: string; body: SetAutonomyRequest }, options?: CallOptions): Promise<AutonomySettingsReply>