pub struct ToolInvocation {
pub tool_call_id: String,
pub tool_name: String,
pub display_name: String,
pub tier: ToolTier,
pub requested_input: Value,
pub effective_input: Value,
pub listen_context: Option<ListenExecutionContext>,
}Expand description
Structured input passed to the pre_tool_use hook for policy
evaluation.
Bundles every datum that a server-side policy engine needs to make an
allow / block / confirm decision, replacing the earlier loose
(tool_name, input, tier) triple.
The AgentHooks trait itself lives in agent-sdk-tools to avoid a
dependency cycle; this struct is the stable contract they share.
Fields§
§tool_call_id: StringUnique ID for this tool call (from LLM).
tool_name: StringTool name string (for LLM protocol).
display_name: StringHuman-readable display name.
tier: ToolTierPermission tier of the tool.
requested_input: ValueInput parameters as requested by the LLM (the audit trail).
effective_input: ValueInput after SDK preparation — may differ from requested_input
for listen-tools that enrich input during the ready phase.
listen_context: Option<ListenExecutionContext>Optional listen-execution context, present when the tool uses the listen/execute pattern.
Trait Implementations§
Source§impl Clone for ToolInvocation
impl Clone for ToolInvocation
Source§fn clone(&self) -> ToolInvocation
fn clone(&self) -> ToolInvocation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more