pub struct ToolCallOptions {
pub environment: EnvironmentSource,
pub config: ConfigSource,
pub globals: Option<Value>,
pub request: Option<RequestContext>,
pub mcp: Option<McpCallContext>,
pub control: ToolCallControl,
}Expand description
Options for one transport-neutral tool invocation.
Fields§
§environment: EnvironmentSourceEnvironment values used to parse command environment fields.
config: ConfigSourceCommand config defaults.
globals: Option<Value>CLI-level global option overrides.
request: Option<RequestContext>Transport request metadata.
mcp: Option<McpCallContext>MCP-specific request metadata.
control: ToolCallControlExecution-scoped cancellation and events.
Implementations§
Trait Implementations§
Source§impl Clone for ToolCallOptions
impl Clone for ToolCallOptions
Auto Trait Implementations§
impl !RefUnwindSafe for ToolCallOptions
impl !UnwindSafe for ToolCallOptions
impl Forget for ToolCallOptions
impl Freeze for ToolCallOptions
impl Move for ToolCallOptions
impl Send for ToolCallOptions
impl Sync for ToolCallOptions
impl Unpin for ToolCallOptions
impl UnsafeUnpin for ToolCallOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more