haive.games.debate_v2.agent¶
Gamified Debate Agent - Modern Implementation.
This module implements a gamified debate using the modern conversation agent pattern from haive-agents, providing proper topic handling and state management without the deprecated DynamicGraph system.
Classes¶
Gamified debate agent with scoring and tournament features. |
Module Contents¶
- class haive.games.debate_v2.agent.GameDebateAgent[source]¶
Bases:
haive.agents.conversation.debate.agent.DebateConversation
Gamified debate agent with scoring and tournament features.
This agent extends the conversation debate system with game-like features: - Scoring system for arguments and rebuttals - Tournament bracket support - Performance statistics tracking - Ranking and leaderboard capabilities
- conclude_conversation(state)[source]¶
Create gamified conclusion with scores and winner declaration.
- Parameters:
state (haive.agents.conversation.debate.state.DebateState)
- Return type:
langgraph.types.Command
- classmethod create_tournament_match(topic, player_a, player_b, match_id, bracket_position='tournament', **kwargs)[source]¶
Create a tournament debate match.
- process_response(state)[source]¶
Process response with game scoring logic.
- Parameters:
state (haive.agents.conversation.debate.state.DebateState)
- Return type:
langgraph.types.Command