pub struct ToolCallContext {
pub secrets: BTreeMap<String, String>,
}Expand description
Per-call values a tool receives next to its arguments, without the model ever seeing them (e.g. the end user’s JWT for a database tool).
The agent node fills it from its tool_context config, only for
providers whose ToolRuntime::accepts_secrets is true. The values are
plaintext: they are never written to events, outputs, snapshots or traces,
and Debug shows only the names. The type deliberately does not implement
Serialize, so it cannot end up in a recorded value by accident.
Fields§
§secrets: BTreeMap<String, String>Secret name → plaintext value.
Implementations§
Trait Implementations§
Source§impl Clone for ToolCallContext
impl Clone for ToolCallContext
Source§impl Debug for ToolCallContext
impl Debug for ToolCallContext
Source§impl Default for ToolCallContext
impl Default for ToolCallContext
impl Eq for ToolCallContext
Source§impl PartialEq for ToolCallContext
impl PartialEq for ToolCallContext
impl StructuralPartialEq for ToolCallContext
Auto Trait Implementations§
impl Forget for ToolCallContext
impl Freeze for ToolCallContext
impl Move for ToolCallContext
impl RefUnwindSafe for ToolCallContext
impl Send for ToolCallContext
impl Sync for ToolCallContext
impl Unpin for ToolCallContext
impl UnsafeUnpin for ToolCallContext
impl UnwindSafe for ToolCallContext
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.