pub struct GroupChatState {
pub task: Option<Message>,
pub participants: Vec<(String, String)>,
pub conversation: Vec<Message>,
pub round_index: usize,
}Expand description
A snapshot of orchestration state handed to a GroupChatManager for its
speaker-selection decision. Rust analogue of GroupChatStateSnapshot.
Fields§
§task: Option<Message>The original task message, if any.
participants: Vec<(String, String)>Registered participants as (name, description) pairs, in order.
conversation: Vec<Message>The full running conversation transcript.
round_index: usizeThe number of participant turns taken so far.
Trait Implementations§
Source§impl Clone for GroupChatState
impl Clone for GroupChatState
Source§fn clone(&self) -> GroupChatState
fn clone(&self) -> GroupChatState
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 moreAuto Trait Implementations§
impl Freeze for GroupChatState
impl RefUnwindSafe for GroupChatState
impl Send for GroupChatState
impl Sync for GroupChatState
impl Unpin for GroupChatState
impl UnsafeUnpin for GroupChatState
impl UnwindSafe for GroupChatState
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