pub struct MagenticContext {
pub task: Message,
pub chat_history: Vec<Message>,
pub participant_descriptions: Vec<(String, String)>,
pub round_count: usize,
pub stall_count: usize,
pub reset_count: usize,
}Expand description
Mutable state threaded through the Magentic manager and orchestrator. Rust
analogue of MagenticContext.
Fields§
§task: MessageThe task message.
chat_history: Vec<Message>The running conversation history.
participant_descriptions: Vec<(String, String)>Participants as (name, description) pairs.
round_count: usizeThe number of coordination rounds taken.
stall_count: usizeThe consecutive stall count.
reset_count: usizeThe number of replans performed.
Implementations§
Trait Implementations§
Source§impl Clone for MagenticContext
impl Clone for MagenticContext
Source§fn clone(&self) -> MagenticContext
fn clone(&self) -> MagenticContext
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 MagenticContext
impl Debug for MagenticContext
Source§impl<'de> Deserialize<'de> for MagenticContext
impl<'de> Deserialize<'de> for MagenticContext
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 MagenticContext
impl RefUnwindSafe for MagenticContext
impl Send for MagenticContext
impl Sync for MagenticContext
impl Unpin for MagenticContext
impl UnsafeUnpin for MagenticContext
impl UnwindSafe for MagenticContext
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