Skip to main content

agora.receiver.components.negotiator

ReceiverNegotiator Objects

class ReceiverNegotiator()

Manages protocol negotiations for the Receiver.

__init__

def __init__(toolformer: Toolformer)

Initialize the ReceiverNegotiator with a Toolformer.

Arguments:

  • toolformer Toolformer - The Toolformer instance managing tools.

create_conversation

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

Create a new negotiation conversation based on available tools.

Arguments:

  • tools List[ToolLike] - A list of tools available for negotiation.
  • additional_info str, optional - Additional information for the negotiation. Defaults to ''.

Returns:

  • Conversation - A Conversation instance managing the negotiation.