pub struct AgentHandoff {Show 15 fields
pub handoff_id: HandoffId,
pub from_agent_id: AgentId,
pub to: Option<AgentTarget>,
pub trajectory_id: TrajectoryId,
pub scope_id: ScopeId,
pub context_snapshot_id: Option<ArtifactId>,
pub handoff_notes: Option<String>,
pub next_steps: Vec<String>,
pub blockers: Vec<String>,
pub open_questions: Vec<String>,
pub status: HandoffStatus,
pub initiated_at: Timestamp,
pub accepted_at: Option<Timestamp>,
pub completed_at: Option<Timestamp>,
pub reason: HandoffReason,
}Expand description
A handoff from one agent to another.
Fields§
§handoff_id: HandoffId§from_agent_id: AgentId§to: Option<AgentTarget>Recipient: specific agent (by_id) or any agent of a type (by_type).
trajectory_id: TrajectoryId§scope_id: ScopeId§context_snapshot_id: Option<ArtifactId>§handoff_notes: Option<String>§next_steps: Vec<String>§blockers: Vec<String>§open_questions: Vec<String>§status: HandoffStatus§initiated_at: Timestamp§accepted_at: Option<Timestamp>§completed_at: Option<Timestamp>§reason: HandoffReasonImplementations§
Source§impl AgentHandoff
impl AgentHandoff
Sourcepub fn to_agent(
from: AgentId,
to: AgentId,
trajectory: TrajectoryId,
scope: ScopeId,
reason: HandoffReason,
) -> Self
pub fn to_agent( from: AgentId, to: AgentId, trajectory: TrajectoryId, scope: ScopeId, reason: HandoffReason, ) -> Self
Create a handoff to a specific agent.
Sourcepub fn to_type(
from: AgentId,
agent_type: impl Into<AgentType>,
trajectory: TrajectoryId,
scope: ScopeId,
reason: HandoffReason,
) -> Self
pub fn to_type( from: AgentId, agent_type: impl Into<AgentType>, trajectory: TrajectoryId, scope: ScopeId, reason: HandoffReason, ) -> Self
Create a handoff to an agent type.
Sourcepub fn with_notes(self, notes: &str) -> Self
pub fn with_notes(self, notes: &str) -> Self
Add handoff notes.
Sourcepub fn with_next_steps(self, steps: Vec<String>) -> Self
pub fn with_next_steps(self, steps: Vec<String>) -> Self
Add next steps.
Trait Implementations§
Source§impl Clone for AgentHandoff
impl Clone for AgentHandoff
Source§fn clone(&self) -> AgentHandoff
fn clone(&self) -> AgentHandoff
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 ComposeSchema for AgentHandoff
impl ComposeSchema for AgentHandoff
Source§impl Debug for AgentHandoff
impl Debug for AgentHandoff
Source§impl<'de> Deserialize<'de> for AgentHandoff
impl<'de> Deserialize<'de> for AgentHandoff
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
Source§impl PartialEq for AgentHandoff
impl PartialEq for AgentHandoff
Source§impl Serialize for AgentHandoff
impl Serialize for AgentHandoff
Source§impl ToSchema for AgentHandoff
impl ToSchema for AgentHandoff
impl StructuralPartialEq for AgentHandoff
Auto Trait Implementations§
impl Freeze for AgentHandoff
impl RefUnwindSafe for AgentHandoff
impl Send for AgentHandoff
impl Sync for AgentHandoff
impl Unpin for AgentHandoff
impl UnwindSafe for AgentHandoff
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