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 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:

dict[str, Any]