ToolInvocationContext
Models & Types ยท AiDotNet.Agentic.Pipeline
The mutable state flowing through a tool-invocation middleware pipeline: which tool is being called, the (rewritable) arguments, and a shared property bag.
For Beginners
The request slip for running a tool. Middleware can read which tool was asked for and with what inputs, tweak the inputs, or stash notes โ before the tool actually runs.
Constructors
| Constructor | Summary |
|---|---|
ToolInvocationContext(string toolName, JObject arguments) |
Initializes a new tool-invocation context. |
Properties
| Property | Summary |
|---|---|
IDictionary<string, object> Items { get; } |
Gets a property bag for sharing state between middleware stages. |
JObject Arguments { get; set; } |
Gets or sets the tool arguments (middleware may rewrite them before execution). |
string ToolName { get; } |
Gets the name of the tool being invoked. |