Llm
Connect a call to AI language model.
Parameters
model
Name of the LLM model.
vendor
Name of the LLM vendor.
actionHook
Webhook that will be called when the LLM session ends.
auth
Object containing authentication credentials; format according to the model.
connectOptions
Object containing information such as the URI to connect to.
eventHook
Webhook that will be called when a requested LLM event happens (e.g., transcript).
events
Array of event names listing the events requested (wildcards allowed).
llmOptions
Object containing instructions for the LLM; format dependent on the LLM model.
toolHook
Webhook that will be called when the LLM wants to call a function.
The following LLMs are currently supported:
- OpenAI Realtime API
- Deepgram Voice Agent
- Ultravox
- ElevenLabs
Example Applications
Please checkout the following example applications:
- for OpenAI
- for Deepgram
- for Ultravox
- for ElevenLabs