Interface: ToolApprovalContext
Makaio Framework / ai-adapters-core / ToolApprovalContext
Interface: ToolApprovalContext
Section titled “Interface: ToolApprovalContext”Defined in: ../../../adapters/core/src/utils/tool-approval.ts:49
Context required to complete a global tool approval request.
Provides adapter identity so the approval handler knows which adapter/agent/session is requesting permission.
Properties
Section titled “Properties”adapterId
Section titled “adapterId”adapterId:
string
Defined in: ../../../adapters/core/src/utils/tool-approval.ts:51
Adapter instance ID
adapterName
Section titled “adapterName”adapterName:
string
Defined in: ../../../adapters/core/src/utils/tool-approval.ts:53
Adapter type name (e.g., ‘gemini-sdk’, ‘openai-node’)
adapterSessionId
Section titled “adapterSessionId”adapterSessionId:
string
Defined in: ../../../adapters/core/src/utils/tool-approval.ts:57
Adapter-side session ID
agentId
Section titled “agentId”agentId:
string
Defined in: ../../../adapters/core/src/utils/tool-approval.ts:55
Agent ID within the adapter
sessionId
Section titled “sessionId”sessionId:
string
Defined in: ../../../adapters/core/src/utils/tool-approval.ts:59
Makaio session ID — required for approval routing to the owning tab