Dial AutoGen Tools

Official Dial tools for Microsoft AutoGen — give an AutoGen agent the ability to send SMS, receive OTP codes, and place AI voice calls through Dial.

This site documents the dial-autogen package. The full API Reference below is generated directly from the source docstrings. See the other SDK docs from the docs home, and the product docs at docs.getdial.ai.

Targeting Microsoft’s newer Agent Framework instead of AutoGen? Use dial-agentframework.

Install

pip install dial-autogen

This pulls in dial-sdk and autogen-agentchat.

Quickstart

Build one DialClient, pass it to dial_tools, and hand the result to an AssistantAgent. Every tool shares that one client — a single connection pool for the whole agent session — and you own its lifecycle (await dial.close() when done):

from autogen_agentchat.agents import AssistantAgent
from dial_sdk import DialClient, DialConfig
from dial_autogen import dial_tools

dial = DialClient(DialConfig(api_key="sk_live_..."))  # close with `await dial.close()`

agent = AssistantAgent(
    name="phone_agent",
    model_client=model_client,
    tools=dial_tools(dial),
    system_message="You operate the team's Dial phone number for SMS, OTP, and voice calls.",
)

Each builder (send_message_tool, wait_for_message_tool, …) takes the shared DialClient and returns one autogen_core.tools.FunctionTool. These tools are async-native — AutoGen runs them in its async loop, so there is no async→sync bridge (the one difference from the CrewAI sibling).