Interface: MergeScopedToolApprovalOptions
Makaio Framework / ai-adapters-core / MergeScopedToolApprovalOptions
Interface: MergeScopedToolApprovalOptions
Section titled “Interface: MergeScopedToolApprovalOptions”Defined in: ../../../adapters/core/src/utils/tool-approval.ts:65
Options controlling how scoped approval payloads are promoted to the global schema.
Properties
Section titled “Properties”allowPayloadIdentityFallback?
Section titled “allowPayloadIdentityFallback?”
optionalallowPayloadIdentityFallback?:boolean
Defined in: ../../../adapters/core/src/utils/tool-approval.ts:83
Allow payload identity fields (agentId, adapterId, adapterName,
adapterSessionId) to satisfy the global request when context lacks them.
This should stay false for connector-scoped RPC handlers, which must rely on
agent context rather than connector-provided identity. Enable only for trusted
call sites that already hold a canonical global approval payload (e.g., direct
bus invocations that supply the full payload without a live agent context).
allowPayloadSessionFallback?
Section titled “allowPayloadSessionFallback?”
optionalallowPayloadSessionFallback?:boolean
Defined in: ../../../adapters/core/src/utils/tool-approval.ts:73
Allow payload.sessionId to satisfy the global request when context lacks one.
This should stay false for connector-scoped RPC handlers, which must rely on
agent context rather than connector-provided session identity. Enable only for
trusted call sites that already hold a canonical global approval payload.