pub struct TeamState {
pub agents: Vec<AgentId>,
pub message_history: Vec<TeamMessage>,
pub iteration: usize,
pub current_index: usize,
}Expand description
The current state of the team orchestration.
Fields§
§agents: Vec<AgentId>Ordered list of agent IDs in this team.
message_history: Vec<TeamMessage>Full message history.
iteration: usizeCurrent iteration/round counter.
current_index: usizeIndex of the current agent (for sequential routing).
Implementations§
Source§impl TeamState
impl TeamState
Sourcepub fn record_message(&mut self, msg: TeamMessage)
pub fn record_message(&mut self, msg: TeamMessage)
Record a message in the history.
Sourcepub fn next_iteration(&mut self)
pub fn next_iteration(&mut self)
Advance to the next iteration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TeamState
impl RefUnwindSafe for TeamState
impl Send for TeamState
impl Sync for TeamState
impl Unpin for TeamState
impl UnsafeUnpin for TeamState
impl UnwindSafe for TeamState
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