dial_crewai¶
Submodules¶
Classes¶
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
|
Base for Dial CrewAI tools. |
Functions¶
|
Every Dial tool in one list, all sharing the given |
Package Contents¶
- class dial_crewai.GetBillingTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- description: str = "Get the account's billing status: credit balance, subscription (if any), each number's billing...¶
- name: str = 'get_billing'¶
- class dial_crewai.GetCallTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- args_schema: type[pydantic.BaseModel]¶
- description: str = 'Fetch a single call by its id, including its current status.'¶
- name: str = 'get_call'¶
- class dial_crewai.ListCallsTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- args_schema: type[pydantic.BaseModel]¶
- description: str = "List recent inbound and outbound calls on the account. Pass contact to read one person's call history."¶
- name: str = 'list_calls'¶
- class dial_crewai.ListContactsTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- args_schema: type[pydantic.BaseModel]¶
- description: str = "List every number the account's lines have exchanged a message or a call with, newest activity...¶
- name: str = 'list_contacts'¶
- class dial_crewai.ListGroupsTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- args_schema: type[pydantic.BaseModel]¶
- description: str = "List the group conversations your lines are in. A group is a conversation that isn't a phone...¶
- name: str = 'list_groups'¶
- class dial_crewai.ListMessagesTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- args_schema: type[pydantic.BaseModel]¶
- description: str = "List recent inbound and outbound messages on the account. Unfiltered this is the newest 100...¶
- name: str = 'list_messages'¶
- class dial_crewai.ListNumbersTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- description: str = 'List all available Dial phone numbers on the account.'¶
- name: str = 'list_numbers'¶
- class dial_crewai.LookupNumberTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- args_schema: type[pydantic.BaseModel]¶
- description: str = "Check what channels a phone number can receive on, before sending to it. Works on ANY number in...¶
- name: str = 'lookup_number'¶
- class dial_crewai.MakeCallTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- args_schema: type[pydantic.BaseModel]¶
- description: str = 'Initiate an AI voice call to a phone number.'¶
- name: str = 'make_call'¶
- class dial_crewai.PurchaseNumberTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- args_schema: type[pydantic.BaseModel]¶
- description: str = 'Provision (buy) a new Dial phone number. Billable.'¶
- name: str = 'purchase_number'¶
- class dial_crewai.ReplyToMessageTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- args_schema: type[pydantic.BaseModel]¶
- description: str = 'Reply in-thread or react to an existing message. The reply goes out from the Dial number the...¶
- name: str = 'reply_to_message'¶
- class dial_crewai.SendMessageTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- args_schema: type[pydantic.BaseModel]¶
- description: str = 'Send a message to a phone number or into a group conversation, optionally with media...¶
- name: str = 'send_message'¶
- class dial_crewai.SetNumberPropertiesTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- args_schema: type[pydantic.BaseModel]¶
- description: str = "Update a Dial phone number's properties: its inbound instruction (the system prompt its AI...¶
- name: str = 'set_number_properties'¶
- class dial_crewai.StartTypingTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- args_schema: type[pydantic.BaseModel]¶
- description: str = "Show a typing indicator to the recipient, as if composing a message from your number. iMessage...¶
- name: str = 'start_typing'¶
- class dial_crewai.StopTypingTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- args_schema: type[pydantic.BaseModel]¶
- description: str = "Clear a typing indicator previously shown with start_typing. Delivering a message or reaction...¶
- name: str = 'stop_typing'¶
- class dial_crewai.WaitForMessageTool¶
Bases:
_DialToolBase for Dial CrewAI tools.
Holds a shared
DialClient(passed in, not constructed per call) so every tool reuses one connection pool, and drives the async client from CrewAI’s sync_runvia the background-loop bridge.arbitrary_types_allowedlets the Pydantic-basedBaseToolcarry the non-PydanticDialClientas a field.- args_schema: type[pydantic.BaseModel]¶
- description: str = "Wait for the next inbound SMS message and return it. Blocks until a message arrives or the...¶
- name: str = 'wait_for_message'¶
- dial_crewai.dial_tools(client: dial_sdk.DialClient) list[crewai.tools.BaseTool]¶
Every Dial tool in one list, all sharing the given
DialClient.Build one client, hand the tools to a CrewAI
Agent:from crewai import Agent from dial_sdk import DialClient, DialConfig from dial_crewai import dial_tools client = DialClient(DialConfig(api_key="sk_live_...")) agent = Agent(role="...", goal="...", tools=dial_tools(client))
The tools share one connection pool. The client lives for the process (its requests run on a background event loop); a sync crew needn’t close it explicitly.