Type Alias: ToolCallContext
ToolCallContext =
object
Defined in: createGatedToolRegistrar.ts:14
Full context passed to gates, buildContext, and onError on every tool
invocation. Having all three fields in one object means gate callbacks can
be both identity-aware and args-aware without multiple parameters.
Properties
args
args:
Record<string,unknown>
Defined in: createGatedToolRegistrar.ts:22
The validated tool input (post SDK parse). Present for gates and
buildContext. Arg-conditional gates read this to vary their predicate
per call.
handler
handler:
string
Defined in: createGatedToolRegistrar.ts:24
Tool name, for error attribution and gate labelling.
identity
identity:
ToolIdentity
Defined in: createGatedToolRegistrar.ts:16
The resolved caller identity.