pub struct GroupChatStateConfig {
pub participants: Vec<ChatParticipant>,
pub style: ChatStyle,
pub max_rounds: u32,
pub manager: Option<ChatManagerConfig>,
pub termination: TerminationConfig,
pub debate: Option<DebateStyleConfig>,
pub maker_checker: Option<MakerCheckerConfig>,
pub timeout_ms: Option<u64>,
pub input: Option<String>,
pub context_mode: Option<DelegateContextMode>,
}Expand description
Group chat state config for multi-agent conversation.
Fields§
§participants: Vec<ChatParticipant>Participant agent IDs with optional roles.
style: ChatStyleConversation style.
max_rounds: u32Maximum conversation rounds.
manager: Option<ChatManagerConfig>Chat manager config.
termination: TerminationConfigWhen and how to terminate.
debate: Option<DebateStyleConfig>Debate-specific config.
maker_checker: Option<MakerCheckerConfig>Maker-checker-specific config.
timeout_ms: Option<u64>Total timeout for the group chat in milliseconds.
input: Option<String>Jinja2 template for the topic sent to participants.
{{ user_input }} is the user’s message. {{ context.
context_mode: Option<DelegateContextMode>Parent conversation context included in the topic.
Trait Implementations§
Source§impl Clone for GroupChatStateConfig
impl Clone for GroupChatStateConfig
Source§fn clone(&self) -> GroupChatStateConfig
fn clone(&self) -> GroupChatStateConfig
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 GroupChatStateConfig
impl Debug for GroupChatStateConfig
Source§impl<'de> Deserialize<'de> for GroupChatStateConfig
impl<'de> Deserialize<'de> for GroupChatStateConfig
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 GroupChatStateConfig
impl RefUnwindSafe for GroupChatStateConfig
impl Send for GroupChatStateConfig
impl Sync for GroupChatStateConfig
impl Unpin for GroupChatStateConfig
impl UnsafeUnpin for GroupChatStateConfig
impl UnwindSafe for GroupChatStateConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.