pub struct AdditionalContext {
pub provider: ProviderConfig,
pub proxy: Option<ProxyConfig>,
pub metadata: Option<ProviderMetadata>,
pub extra: HashMap<String, Value>,
}Expand description
Runtime context passed to the executor for each tool call.
Contains everything needed to create a provider and execute a tool:
provider— typed connection config with scopeproxy— optional proxy for self-hosted instancesmetadata— optional provider metadata for dynamic enrichmentextra— cross-cutting concerns (tracing, feature flags, caller metadata)
Note: intentionally not Serialize/Deserialize — provider carries
SecretString access tokens that must not leak through wire formats.
Fields§
§provider: ProviderConfig§proxy: Option<ProxyConfig>§metadata: Option<ProviderMetadata>§extra: HashMap<String, Value>Trait Implementations§
Source§impl Clone for AdditionalContext
impl Clone for AdditionalContext
Source§fn clone(&self) -> AdditionalContext
fn clone(&self) -> AdditionalContext
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 moreAuto Trait Implementations§
impl Freeze for AdditionalContext
impl RefUnwindSafe for AdditionalContext
impl Send for AdditionalContext
impl Sync for AdditionalContext
impl Unpin for AdditionalContext
impl UnsafeUnpin for AdditionalContext
impl UnwindSafe for AdditionalContext
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