haive.agents.conversation.debate.agent ====================================== .. py:module:: haive.agents.conversation.debate.agent .. autoapi-nested-parse:: Structured debate conversation agent with positions and formal argumentation. This module implements a debate conversation agent that manages structured debates between multiple participants with defined positions, argument tracking, and optional judging/scoring capabilities. Classes ------- .. autoapisummary:: haive.agents.conversation.debate.agent.DebateConversation Module Contents --------------- .. py:class:: DebateConversation Bases: :py:obj:`haive.agents.conversation.base.agent.BaseConversationAgent` Structured debate conversation with positions and formal argumentation. This agent orchestrates formal debates between participants using a reducer-based state system for automatic tracking and phase management. Features: - Automatic round tracking via reducers - Phase transitions based on computed properties - Structured debate format with opening/closing statements - Optional judging and scoring - Configurable argument requirements .. py:method:: conclude_conversation(state) Create debate conclusion using state statistics. .. py:method:: create_simple_debate(topic, position_a, position_b, enable_judge = False, arguments_per_side = 3, temperature = 0.7, **kwargs) :classmethod: Create a simple two-sided debate conversation. .. py:method:: get_conversation_state_schema() Return the DebateState schema for this conversation. .. py:method:: process_response(state) Process agent response using reducers for automatic tracking. .. py:method:: select_speaker(state) Select the next speaker based on debate phase and rules. .. py:method:: setup_agent() Setup the debate agent with proper state schema. .. py:method:: validate_debate_setup() Validate debate configuration and participant setup.