RimeRealtimeLLMService connects a Pipecat agent directly to Prism with your Rime API key. For installation and a complete agent, use the Pipecat quickstart. These settings apply to the Rime service in Pipecat 1.17.0 or later. The rime extra installs the Rime SDK for Python 0.1.0a31 with it.
Session behavior
Prism handles speech input, turn detection, and speech output. UseLLMContextAggregatorPair with the service, and add no separate speech-to-text, text-to-speech, or local VAD service.
Settings
Set these inRimeRealtimeLLMService.Settings when you create the service, or change them during the call with LLMUpdateSettingsFrame. Creating the service raises ValueError for an invalid value, such as a speed outside 0.85 to 1.3.
Choose which speech interrupts a reply
By default, any speech over a reply interrupts it. Three settings let a caller say “uh huh” or “okay” without stopping Prism.
Each phrase list holds at most 100 phrases. An empty list clears it.
This service needs three words to interrupt a reply. It also interrupts at once on “stop” or “wait”, and lets “uh huh” and “okay” pass:
turn_detection, a TurnDetection from rimelabs_sdk.realtime. Set each rule in one place. The service raises ValueError if turn_detection and settings both set the same rule. turn_detection also takes the server’s turn settings for the opening, such as eagerness and the end-of-turn silence floor. The Prism SDK reference lists them.
Change settings during a call
Send anLLMUpdateSettingsFrame with only the settings you want to change. Omitted settings keep their current values. This update replaces the acknowledgment list:
[]. An update cannot set system_instruction, voice, speed, interrupt_on_speech, truncation, or the three interruption settings to None. An update with an invalid value, or with one of those settings set to None, is refused. The service pushes the ValueError into your pipeline as an ordinary error, and the settings stay as they were.
Prism can refuse an update. The service then restores the previous settings. Send LLMSetToolsFrame to change only the tools.
Control tool calls
Prism chooses when to call your functions. Pipecat runs them, andresult_callback returns each result to Prism. Automatic or disabled tool selection is supported. Forced tool selection is unsupported.
tool_fillers maps a tool name to a PrismFiller from rimelabs_sdk.realtime. A filler applies to the advertised tool with that name. This filler plays while the lookup runs:
cancel_on_interruption=False can send intermediate results. An intermediate result is added to the history beside its call, and the call stays open until its final result. Only the final result answers the call. Handle slow tools and long tasks covers results that arrive late.
Configure the connection
The service retries an opening after an eligible HTTP refusal, and never replays an established conversation. These options are the defaults. They allow up to three retries after the first attempt, with at least 2 seconds between attempts, 30 seconds for one connection, and 60 seconds for all attempts and delays:max_retries accepts 0 to 10. Use timeouts to pass an SDK RealtimeTimeouts for the connection, readiness, and acknowledgment limits. Pass request_id to request a correlation ID. llm.session_info returns the acknowledged session information, including the request ID.
Choose playback behavior
The defaultplayback="estimated" reports an estimated position for the latest emitted audio. Pipecat does not measure device playback or send playback-completion receipts.
With playback="discard", the service drops all output audio and reports it to Prism as unplayed:
Read session events
The service raises two events.on_session_updated runs when Prism acknowledges session information. on_rime_event runs for each SDK event, including provider diagnostics. This handler logs the Prism version that accepted the session:

