pub struct ToolCallOptions {
pub environment: EnvironmentSource,
pub config: ConfigSource,
pub globals: Option<Value>,
pub request: Option<RequestContext>,
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.
control: ToolCallControlExecution-scoped cancellation and events.
Implementations§
Trait Implementations§
Source§impl Clone for ToolCallOptions
impl Clone for ToolCallOptions
Source§fn clone(&self) -> ToolCallOptions
fn clone(&self) -> ToolCallOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ToolCallOptions
impl Default for ToolCallOptions
Source§fn default() -> ToolCallOptions
fn default() -> ToolCallOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ToolCallOptions
impl !UnwindSafe for ToolCallOptions
impl Freeze 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more