Skip to main content

agora.receiver.components.responder

PROTOCOL_RESPONDER_PROMPT

\

Responder Objects

class Responder()

__init__

def __init__(toolformer: Toolformer) -> None

Initializes a new Responder.

Arguments:

  • toolformer Toolformer - The Toolformer instance handling transformations.

create_protocol_conversation

def create_protocol_conversation(protocol_document: str,
tools: List[ToolLike],
additional_info: str = '') -> Conversation

Creates a protocol-based conversation.

Arguments:

  • protocol_document str - The text describing the protocol.
  • tools List[ToolLike] - A list of tools available to the conversation.
  • additional_info str, optional - Additional context for the conversation.

Returns:

  • Conversation - The newly created conversation following the protocol.

create_nl_conversation

def create_nl_conversation(tools: List[ToolLike],
additional_info: str = '') -> Conversation

Creates a natural language conversation without protocol constraints.

Arguments:

  • tools List[ToolLike] - Tools available during the conversation.
  • additional_info str, optional - Additional context.

Returns:

  • Conversation - The created NL conversation.

create_conversation

def create_conversation(protocol_document: Optional[str],
tools: List[ToolLike],
additional_info: str = '') -> Conversation

Creates either a protocol-based or a natural language conversation.

Arguments:

  • protocol_document Optional[str] - The protocol text if available. If None, a natural language conversation is created.
  • tools List[ToolLike] - Tools for conversation handling.
  • additional_info str, optional - Additional context or configuration.

Returns:

  • Conversation - The resulting conversation instance.