pub struct AgentExtension {
pub input: Option<String>,
pub session_id: Option<String>,
pub conversation_id: Option<String>,
pub turn: Option<u32>,
pub agent_id: Option<String>,
pub parent_agent_id: Option<String>,
pub conversation: Option<ConversationContext>,
}Expand description
Agent execution context extension.
Carries session tracking, conversation context, multi-agent lineage, and the original user/agent input.
Fields§
§input: Option<String>Original user/agent input that triggered this action.
session_id: Option<String>Broad user/agent session identifier.
conversation_id: Option<String>Specific dialogue/task identifier within a session.
turn: Option<u32>Position within the conversation (0-indexed).
agent_id: Option<String>Identifier of the agent that produced this message.
parent_agent_id: Option<String>If spawned by another agent, the parent’s ID.
conversation: Option<ConversationContext>Optional conversation context with history.
Trait Implementations§
Source§impl Clone for AgentExtension
impl Clone for AgentExtension
Source§fn clone(&self) -> AgentExtension
fn clone(&self) -> AgentExtension
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 AgentExtension
impl Debug for AgentExtension
Source§impl Default for AgentExtension
impl Default for AgentExtension
Source§fn default() -> AgentExtension
fn default() -> AgentExtension
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentExtension
impl<'de> Deserialize<'de> for AgentExtension
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 AgentExtension
impl RefUnwindSafe for AgentExtension
impl Send for AgentExtension
impl Sync for AgentExtension
impl Unpin for AgentExtension
impl UnsafeUnpin for AgentExtension
impl UnwindSafe for AgentExtension
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