Skip to main content

MeshAgent Twilio

Twilio SMS/MMS channel support for MeshAgent process agents.

This package exports TwilioChannel and create_channel(...) for use with a MeshAgent process channel shim.

The channel turns validated Twilio webhook queue messages into trusted MeshAgent user turns and sends completed agent responses through Twilio's Messages API. Inbound MMS media from Twilio MediaUrl{N} webhook fields is downloaded with the channel's Twilio credentials, uploaded to room storage, and passed to the room agent as AgentFileContent. Text responses are sent as SMS. File attachments emitted by the agent with attach_file are sent as MMS media URLs when they are HTTP(S) URLs, or when room:///... storage URLs can be resolved through room.storage.download_url(path=...). Agent-generated image events are written to room storage as binary media and sent through signed MMS media URLs. Base64/data URL room files are decoded before being exposed to Twilio.

Set MESHAGENT_TWILIO_ALLOWED_FROM_NUMBERS to a comma-separated phone number allowlist to process and send messages only for specific SMS/MMS numbers. Numbers are matched by digits, so +1 (555) 010-1000 and 15550101000 are equivalent. Leave it empty to allow all senders.

Inbound MMS files are stored under MESHAGENT_TWILIO_MEDIA_STORAGE_PREFIX (.threads/twilio-media by default). Set MESHAGENT_TWILIO_INBOUND_MEDIA_MAX_BYTES to cap each inbound media download; the default is 25000000.

Metadata

Release files for meshagent-twilio 0.45.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meshagent-twilio 0.45.9
File Size Uploaded
meshagent_twilio-0.45.9.tar.gz 22.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for meshagent-twilio 0.45.9
File Interpreter ABI Platform
meshagent_twilio-0.45.9-py3-none-any.whl Python 3 none any Details

Total release size: 38.9 kB

Release files / meshagent_twilio-0.45.9.tar.gz

Download URL meshagent_twilio-0.45.9.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5f4b2aad98557bd8932af8627ccebc162b9488e0e65f27444abd1e62428da2c0
BLAKE2b-256 checksum
How to use checksums
b1e78c30e4998ac4d9f5f87fd6ad8bf52be0492c278cd618b72ff7339401be62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / meshagent_twilio-0.45.9-py3-none-any.whl

Download URL meshagent_twilio-0.45.9-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3bf70af768d017d0437947176a12d1ef06238a42e6842a1e795d148ed79ea18
BLAKE2b-256 checksum
How to use checksums
0f4f7b1670c3bab923e1350dd5c6fb8dbce8cd85ce1ae6dc945ee741d9d529b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.45.9 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page