# octoroom_agents v0.1.0 - API Reference

## Modules

- [Octoroom.Agent](Octoroom.Agent.md): A voice agent in a room: a module with instructions and tools, added to a
room's `workers/1` with `agent/3`.
- [Octoroom.Agent.Audio.Mixer](Octoroom.Agent.Audio.Mixer.md): Mixes several inputs of s16le mono PCM into one stream, a chunk at a time,
for a model that has one audio input (Gemini Live).
- [Octoroom.Agent.ConversationEvents](Octoroom.Agent.ConversationEvents.md): Accumulates observed text and emits finalized conversation items to the owner.
- [Octoroom.Agent.Frame](Octoroom.Agent.Frame.md): Frames are the structs that processors pass to each other.
- [Octoroom.Agent.Frames](Octoroom.Agent.Frames.md): The frames built into agents. See `Octoroom.Agent.Frame` for the categories.
- [Octoroom.Agent.Frames.AssistantDraft](Octoroom.Agent.Frames.AssistantDraft.md)
- [Octoroom.Agent.Frames.AssistantMessage](Octoroom.Agent.Frames.AssistantMessage.md)
- [Octoroom.Agent.Frames.AsyncToolResult](Octoroom.Agent.Frames.AsyncToolResult.md)
- [Octoroom.Agent.Frames.AudioFlushed](Octoroom.Agent.Frames.AudioFlushed.md)
- [Octoroom.Agent.Frames.BotStartedSpeaking](Octoroom.Agent.Frames.BotStartedSpeaking.md)
- [Octoroom.Agent.Frames.BotStoppedSpeaking](Octoroom.Agent.Frames.BotStoppedSpeaking.md)
- [Octoroom.Agent.Frames.Cancel](Octoroom.Agent.Frames.Cancel.md)
- [Octoroom.Agent.Frames.End](Octoroom.Agent.Frames.End.md)
- [Octoroom.Agent.Frames.Error](Octoroom.Agent.Frames.Error.md)
- [Octoroom.Agent.Frames.FinalizeTranscript](Octoroom.Agent.Frames.FinalizeTranscript.md)
- [Octoroom.Agent.Frames.InputAudio](Octoroom.Agent.Frames.InputAudio.md)
- [Octoroom.Agent.Frames.InputImage](Octoroom.Agent.Frames.InputImage.md)
- [Octoroom.Agent.Frames.InterimTranscription](Octoroom.Agent.Frames.InterimTranscription.md)
- [Octoroom.Agent.Frames.Interruption](Octoroom.Agent.Frames.Interruption.md)
- [Octoroom.Agent.Frames.LLMContext](Octoroom.Agent.Frames.LLMContext.md)
- [Octoroom.Agent.Frames.LLMResponseEnd](Octoroom.Agent.Frames.LLMResponseEnd.md)
- [Octoroom.Agent.Frames.LLMResponseStart](Octoroom.Agent.Frames.LLMResponseStart.md)
- [Octoroom.Agent.Frames.LLMText](Octoroom.Agent.Frames.LLMText.md)
- [Octoroom.Agent.Frames.OutputAudio](Octoroom.Agent.Frames.OutputAudio.md)
- [Octoroom.Agent.Frames.PreemptiveLLMContext](Octoroom.Agent.Frames.PreemptiveLLMContext.md)
- [Octoroom.Agent.Frames.PreemptiveTranscription](Octoroom.Agent.Frames.PreemptiveTranscription.md)
- [Octoroom.Agent.Frames.Prompt](Octoroom.Agent.Frames.Prompt.md)
- [Octoroom.Agent.Frames.Start](Octoroom.Agent.Frames.Start.md)
- [Octoroom.Agent.Frames.SwitchBranch](Octoroom.Agent.Frames.SwitchBranch.md)
- [Octoroom.Agent.Frames.TTSStarted](Octoroom.Agent.Frames.TTSStarted.md)
- [Octoroom.Agent.Frames.TTSStopped](Octoroom.Agent.Frames.TTSStopped.md)
- [Octoroom.Agent.Frames.TTSText](Octoroom.Agent.Frames.TTSText.md)
- [Octoroom.Agent.Frames.Text](Octoroom.Agent.Frames.Text.md)
- [Octoroom.Agent.Frames.ToolCalls](Octoroom.Agent.Frames.ToolCalls.md)
- [Octoroom.Agent.Frames.ToolResults](Octoroom.Agent.Frames.ToolResults.md)
- [Octoroom.Agent.Frames.Transcription](Octoroom.Agent.Frames.Transcription.md)
- [Octoroom.Agent.Frames.UpdateStage](Octoroom.Agent.Frames.UpdateStage.md)
- [Octoroom.Agent.Frames.UserAudio](Octoroom.Agent.Frames.UserAudio.md)
- [Octoroom.Agent.Frames.UserStartedSpeaking](Octoroom.Agent.Frames.UserStartedSpeaking.md)
- [Octoroom.Agent.Frames.UserStoppedSpeaking](Octoroom.Agent.Frames.UserStoppedSpeaking.md)
- [Octoroom.Agent.Frames.VADUserStartedSpeaking](Octoroom.Agent.Frames.VADUserStartedSpeaking.md)
- [Octoroom.Agent.Frames.VADUserStoppedSpeaking](Octoroom.Agent.Frames.VADUserStoppedSpeaking.md)
- [Octoroom.Agent.Frames.VideoInactive](Octoroom.Agent.Frames.VideoInactive.md)
- [Octoroom.Agent.GeminiLive.Protocol](Octoroom.Agent.GeminiLive.Protocol.md): Gemini Live's wire format: the frames sent to it and the events its frames
decode to. Pure, so it's tested without a socket.
- [Octoroom.Agent.Models](Octoroom.Agent.Models.md): Downloads and caches optional ONNX models that are too large to bundle in
the Hex package.
- [Octoroom.Agent.OpenAILive.Protocol](Octoroom.Agent.OpenAILive.Protocol.md): OpenAI Live API (`wss://api.openai.com/v1/live/sessions`, `gpt-live-1.1` /
`gpt-live-1`) wire format: client events sent to OpenAI and the events
server frames decode to. Pure, so it's tested without a socket.

- [Octoroom.Agent.Pipeline.Core](Octoroom.Agent.Pipeline.Core.md): The pure part of an agent's pipeline.
- [Octoroom.Agent.Pipeline.Spec](Octoroom.Agent.Pipeline.Spec.md): Builds a pipeline spec with `|>`
- [Octoroom.Agent.Pipeline.Test](Octoroom.Agent.Pipeline.Test.md): Runs a pipeline spec in the calling process, with no sockets or
timers, for tests.
- [Octoroom.Agent.Processor](Octoroom.Agent.Processor.md): A stage in a pipeline. See docs/pipelines.md.
- [Octoroom.Agent.Processor.StateMachine](Octoroom.Agent.Processor.StateMachine.md): A processor written as a state machine, with `gen_statem` semantics.
- [Octoroom.Agent.Processors.AssistantCollector](Octoroom.Agent.Processors.AssistantCollector.md): Collects the assistant's reply and sends it back to the context as an
`AssistantMessage` once it's known how much of it people heard.
- [Octoroom.Agent.Processors.AudioTurns](Octoroom.Agent.Processors.AudioTurns.md): Turn taking with no STT, for the half-cascaded pipeline: the LLM hears each
user turn as audio.
- [Octoroom.Agent.Processors.Context](Octoroom.Agent.Processors.Context.md): The only owner of the conversation history.
- [Octoroom.Agent.Processors.Decisions](Octoroom.Agent.Processors.Decisions.md): Asks a decision model about each turn, and attaches the answers to the
turn: who the speaker is talking to, and whether an assistant could
usefully answer. The agent's gate uses them to decide whether to reply.
- [Octoroom.Agent.Processors.GeminiLive](Octoroom.Agent.Processors.GeminiLive.md): Gemini Live speech-to-speech as one stage: `InputAudio` in (16 kHz),
`OutputAudio` out (24 kHz). The model does its own turn-taking. When it
reports that someone talked over it, this stage pushes an `Interruption`.
When its reply is done generating, it pushes an `AssistantMessage`, though
the audio may play for a while yet.
- [Octoroom.Agent.Processors.LLM](Octoroom.Agent.Processors.LLM.md): Streams the LLM's reply for each `LLMContext`.
- [Octoroom.Agent.Processors.OpenAILive](Octoroom.Agent.Processors.OpenAILive.md): OpenAI Live (`gpt-live-1.1` / `gpt-live-1`) full-duplex speech-to-speech as
one stage: `InputAudio` in (resampled from 16 kHz to 24 kHz by default),
`OutputAudio` out (24 kHz). The model listens and speaks simultaneously and
takes its own turns.
- [Octoroom.Agent.Processors.STT](Octoroom.Agent.Processors.STT.md): Streaming speech-to-text through an `Octoroom.Agent.STT` provider.
- [Octoroom.Agent.Processors.STTTurns](Octoroom.Agent.Processors.STTTurns.md): Turn taking by the STT provider's own endpointing.
- [Octoroom.Agent.Processors.TTS](Octoroom.Agent.Processors.TTS.md): Speaks `Text` frames.
- [Octoroom.Agent.Processors.TextChunker](Octoroom.Agent.Processors.TextChunker.md): Splits the LLM's streamed text into `Text` chunks for TTS.
- [Octoroom.Agent.Processors.Tools](Octoroom.Agent.Processors.Tools.md): Runs the LLM's tool calls.
- [Octoroom.Agent.Processors.Transcriber](Octoroom.Agent.Processors.Transcriber.md): Transcribes each `UserAudio` turn with an LLM, off the reply path.
- [Octoroom.Agent.Processors.VAD](Octoroom.Agent.Processors.VAD.md): Local voice activity detection with Silero.
- [Octoroom.Agent.STT](Octoroom.Agent.STT.md): Streaming speech-to-text providers.
- [Octoroom.Agent.STT.AssemblyAI](Octoroom.Agent.STT.AssemblyAI.md): AssemblyAI realtime speech-to-text over its v3 WebSocket API.
- [Octoroom.Agent.STT.Reson8](Octoroom.Agent.STT.Reson8.md): Reson8 realtime speech-to-text over its WebSocket API.
- [Octoroom.Agent.STT.Soniox](Octoroom.Agent.STT.Soniox.md): Soniox real-time speech-to-text over its WebSocket API.
- [Octoroom.Agent.TTS](Octoroom.Agent.TTS.md): Text-to-speech providers.
- [Octoroom.Agent.TTS.AssemblyAI](Octoroom.Agent.TTS.AssemblyAI.md): AssemblyAI text-to-speech, over its streaming WebSocket.
- [Octoroom.Agent.TTS.Inworld](Octoroom.Agent.TTS.Inworld.md): Inworld text-to-speech, over its bidirectional WebSocket.
- [Octoroom.Agent.TTS.OpenAI](Octoroom.Agent.TTS.OpenAI.md): OpenAI text-to-speech (`/v1/audio/speech`).
- [Octoroom.Agent.TTS.TinyVoca](Octoroom.Agent.TTS.TinyVoca.md): Local text-to-speech using [tiny-voca](https://huggingface.co/n4ze3m/tiny-voca)
(4.5M parameters, Apache-2.0) running on ONNX Runtime via `OnnxRuntime`.
- [Octoroom.Agent.Telemetry](Octoroom.Agent.Telemetry.md): The `:telemetry` events `octoroom_agents` emits.
- [Octoroom.Agent.ToolExecutor](Octoroom.Agent.ToolExecutor.md): Runs tool handlers inside the agent's process, on the app's node, so a
handler can call the app directly (its Repo, PubSub, contexts).
- [Octoroom.Agent.TurnDetection.SmartTurn](Octoroom.Agent.TurnDetection.SmartTurn.md): Pipecat's Smart Turn v3 end-of-turn classifier for 16 kHz mono PCM16 audio.
- [Octoroom.Agent.VAD](Octoroom.Agent.VAD.md): Voice activity state machine.
- [Octoroom.Agent.VAD.Silero](Octoroom.Agent.VAD.Silero.md): Silero VAD (v5 ONNX) speech-probability analyzer for 16 kHz mono PCM16 audio.
- [Octoroom.Agent.Worker](Octoroom.Agent.Worker.md): Runs an agent as an Octoroom worker: one process per agent, hearing any
number of people. Usually started by `Octoroom.Agent.agent/3` from an
`Octoroom.Agent` module

## Mix Tasks

- [mix octoroom.models.download](Mix.Tasks.Octoroom.Models.Download.md): Downloads and verifies optional ONNX models (currently Smart Turn v3.2) into
the local cache directory, or into `--dir`.

