Skip to main content

agora.receiver.components.protocol_checker

ReceiverProtocolChecker Objects

class ReceiverProtocolChecker()

Checks protocol validity and suitability for the Receiver.

__init__

def __init__(toolformer: Toolformer)

Initialize the ReceiverProtocolChecker with a Toolformer.

Arguments:

  • toolformer Toolformer - The Toolformer instance managing tools.

__call__

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

Determine if the protocol is suitable based on available tools.

Arguments:

  • protocol_document str - The protocol document to evaluate.
  • tools List[ToolLike] - A list of tools available to implement the protocol.
  • additional_info str, optional - Additional information for evaluation. Defaults to ''.

Returns:

  • bool - True if the protocol is suitable, False otherwise.