haive.agents.conversation.round_robin.agent¶

Round-robin conversation agent where each participant speaks in turn.

Classes¶

RoundRobinConversation

Round-robin conversation where each agent speaks in a fixed order.

Module Contents¶

class haive.agents.conversation.round_robin.agent.RoundRobinConversation¶

Bases: haive.agents.conversation.base.agent.BaseConversationAgent

Round-robin conversation where each agent speaks in a fixed order.

Each participant gets exactly one turn per round, with the order maintained throughout the conversation.

classmethod create_simple(participants, topic='General discussion', max_rounds=3, system_message_template=None, **kwargs)¶

Create a simple round-robin conversation with auto-generated agents.

Parameters:
  • participants (list[str]) – List of participant names

  • topic (str) – Conversation topic

  • max_rounds (int) – Maximum number of rounds

  • system_message_template (str | None) – Template for system messages (use {name} for participant name)

  • **kwargs – Additional arguments for the conversation

Returns:

Configured RoundRobinConversation

select_speaker(state)¶

Select the next speaker in round-robin order.

Parameters:

state (haive.agents.conversation.base.state.ConversationState)

Return type:

langgraph.types.Command