pub struct AgentToolState {
pub shell_environment: BTreeMap<String, String>,
pub deferred_call_metadata: BTreeMap<String, Metadata>,
pub auto_load_files: Vec<String>,
pub tasks: TaskManager,
pub loaded_tool_names: Vec<String>,
pub loaded_tool_namespaces: Vec<String>,
pub background_context_delta_ids: BTreeSet<String>,
}Expand description
Durable agent-owned state used by tool bundles.
This component keeps shell, task, deferred-call, handoff-file, and dynamic
tool-search state out of the lifecycle-wide crate::AgentContext root.
It is flattened during context serialization to preserve the established
v0 wire shape while giving runtime code an explicit ownership boundary.
Fields§
§shell_environment: BTreeMap<String, String>Legacy execution environment accepted on restore but never serialized.
deferred_call_metadata: BTreeMap<String, Metadata>Metadata for deferred tool calls.
auto_load_files: Vec<String>Files to auto-load on the next request.
tasks: TaskManagerAgent-managed task state.
loaded_tool_names: Vec<String>Tool names loaded through dynamic tool search.
loaded_tool_namespaces: Vec<String>Namespace identifiers loaded through dynamic tool search.
background_context_delta_ids: BTreeSet<String>Applied background-subagent context-delta operation ids.
Trait Implementations§
Source§impl Clone for AgentToolState
impl Clone for AgentToolState
Source§fn clone(&self) -> AgentToolState
fn clone(&self) -> AgentToolState
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 Debug for AgentToolState
impl Debug for AgentToolState
Source§impl Default for AgentToolState
impl Default for AgentToolState
Source§fn default() -> AgentToolState
fn default() -> AgentToolState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentToolState
impl<'de> Deserialize<'de> for AgentToolState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentToolState
impl RefUnwindSafe for AgentToolState
impl Send for AgentToolState
impl Sync for AgentToolState
impl Unpin for AgentToolState
impl UnsafeUnpin for AgentToolState
impl UnwindSafe for AgentToolState
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