pub struct DebateAgent {
pub id: String,
pub name: String,
pub color: String,
pub persona: String,
pub perspective: String,
pub contentiousness: f32,
pub tool_filter: Option<String>,
}Expand description
An individual participant in a TaskNodeKind::Debate node.
Each agent runs in every debate round as an independent LLM call with its
own persona and perspective injected into the system prompt.
Fields§
§id: StringShort unique id within this debate config (e.g. "optimist").
name: StringDisplay name shown in the frontend stream and logs.
color: StringHex colour code (#rrggbb) used for this agent’s text in the UI.
persona: StringSystem-prompt fragment that establishes the agent’s character.
perspective: StringThe specific position or viewpoint the agent is instructed to argue.
contentiousness: f32Float in [0.0, 1.0]. Mapped to LLM temperature: 0.0 = highly
focused / convergent, 1.0 = exploratory / contentious.
tool_filter: Option<String>Optional tool-call filter expression. If None, inherits the parent
node’s tool_allowlist.
Trait Implementations§
Source§impl Clone for DebateAgent
impl Clone for DebateAgent
Source§fn clone(&self) -> DebateAgent
fn clone(&self) -> DebateAgent
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 Debug for DebateAgent
impl Debug for DebateAgent
Source§impl<'de> Deserialize<'de> for DebateAgent
impl<'de> Deserialize<'de> for DebateAgent
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 DebateAgent
impl RefUnwindSafe for DebateAgent
impl Send for DebateAgent
impl Sync for DebateAgent
impl Unpin for DebateAgent
impl UnwindSafe for DebateAgent
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