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 games.debate_v2.agent.GameDebateAgent¶
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)¶
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)¶
Create a tournament debate match.
- process_response(state)¶
Process response with game scoring logic.
- Parameters:
state (haive.agents.conversation.debate.state.DebateState)
- Return type:
langgraph.types.Command
- setup_agent()¶
Setup the game debate agent with proper state schema.
- Return type:
None
- validate_game_setup()¶
Validate game configuration.
- Return type: