WhatsAppTool
fastagency.runtimes.autogen.tools.whatsapp.WhatsAppTool #
WhatsAppTool(
whatsapp_api_key: str,
whatsapp_openapi_url: str = WHATSAPP_OPENAPI_URL,
whatsapp_api_server: str = WHATSAPP_API_SERVER,
)
Bases: Toolable
Create a new WhatsAppTool instance.
PARAMETER | DESCRIPTION |
---|---|
whatsapp_api_key | The WhatsApp API key. TYPE: |
whatsapp_openapi_url | Url of the openapi schema for Infobip WhatsApp API, defaults to https://dev.infobip.com/openapi/products/whatsapp.json TYPE: |
whatsapp_api_server | Url of the Infobip WhatsApp API server, defaults to https://api.infobip.com TYPE: |
Source code in fastagency/runtimes/autogen/tools/whatsapp.py
whatsapp_api instance-attribute
#
whatsapp_api = create(
openapi_url=whatsapp_openapi_url,
servers=[{"url": whatsapp_api_server}],
)
register #
register(
*,
caller: ConversableAgent,
executor: Union[
ConversableAgent, list[ConversableAgent]
]
) -> None