Send text in
Push text into the pipeline withprocess_text(): the LLM treats it as if the user said it.
Pair it with a text-capable pipeline (llm only, or llm + tts).
llm-only pipeline and read replies from
the llm event:
Room pub/sub messaging
Pub/sub lets the agent and your clients exchange messages on named topics in the room: push data to clients, receive commands, or run a side text channel next to the voice call.Publish a message
Publish through the session. This works well inside afunction_tool, so the LLM itself can send messages:
Subscribe to a topic
Register a callback for a topic, typically fromon_enter, once the session is live:
"capture_frames" and the agent responds by capturing vision
frames, or forwards inbound chat text to process_text().
Common topics
What’s Next
Transformation
Rewrite the text stream before it’s spoken
Vision
Trigger frame captures from a client message.
References
- Python
Examples
Pub/Sub Messaging
Exchange text messages over pub/sub.