Swarm Ochestration
TwilioAdapter
to enable you to connect your
realtime agent to twilio service.
To be able to run this notebook, you will need to install ag2 with
additional realtime and twilio dependencies.
llm_config
and realtime_llm_config
LLMConfig.from_json
method loads a list of configurations from an environment variable or a
json file.
OnCondition
class.
/incoming-call
route processes
incoming calls from Twilio, providing a TwiML response to connect
the call to a real-time AI assistant./media-stream
WebSocket endpoint
bridges the connection between Twilio’s media stream and OpenAI’s
Realtime API through the RealtimeAgent.triage_agent
, flight_modification
) to handle
complex tasks during the call.5050
. You can access the root URL (http://localhost:5050/
) to
confirm the server is running.