pub struct AgentExecutionContext {
pub agent_id: String,
pub original_goal: String,
pub current_task: String,
pub project_path: String,
pub max_steps: usize,
pub current_step: usize,
pub execution_time: Duration,
pub token_usage: TokenUsage,
}Expand description
Agent execution context information
Fields§
§agent_id: StringAgent configuration name or identifier
original_goal: StringOriginal goal from the first user request (never overwritten)
current_task: StringCurrent task being executed (can be updated with new queries)
project_path: StringProject path or working directory
max_steps: usizeMaximum allowed steps
current_step: usizeCurrent step number
execution_time: DurationTotal execution time so far
token_usage: TokenUsageToken usage statistics
Trait Implementations§
Source§impl Clone for AgentExecutionContext
impl Clone for AgentExecutionContext
Source§fn clone(&self) -> AgentExecutionContext
fn clone(&self) -> AgentExecutionContext
Returns a duplicate of the value. Read more
1.0.0 · 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 AgentExecutionContext
impl Debug for AgentExecutionContext
Source§impl<'de> Deserialize<'de> for AgentExecutionContext
impl<'de> Deserialize<'de> for AgentExecutionContext
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 AgentExecutionContext
impl RefUnwindSafe for AgentExecutionContext
impl Send for AgentExecutionContext
impl Sync for AgentExecutionContext
impl Unpin for AgentExecutionContext
impl UnwindSafe for AgentExecutionContext
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