Sends a prompt and receives a full string response.
Optional
options: AskOptionsWithoutVoiceSends a prompt and gets both text and voice response from the agent.
Optional
options: Omit<Sends a prompt to the agent and receives streamed text responses.
Optional
options: ChatOptionsWithoutVoiceDeletes the AI agent.
Deletes a specific context by its ID.
Deletes multiple agent contexts.
Deletes the custom guardrails for the agent.
Retrieves metadata and configuration of the AI agent.
Retrieves a specific agent context by its ID.
Lists all contexts associated with the agent.
Observes live status messages from the agent.
Optional
options: AiObserveStatusOptionsSends user feedback to the agent.
Resets any feedback previously provided to the agent.
Performs a semantic search using the agent's knowledge base.
Transcribes audio and sends it to the agent for response.
Optional
options: AskOptionsWithoutVoiceTranscribes audio and gets both text and voice response from the agent.
Optional
options: Omit<Transcribes the given file and performs a chat interaction.
Optional
options: ChatOptionsWithoutVoiceUpdates the list of agents connected to this agent.
Updates the agent's custom guardrails with the provided custom guardrail.
Updates the agent's guardrails with the provided options.
Updates the agent's instruction prompt.
Changes the AI model used by the agent.
Creates or updates the AI agent with the provided parameters.
Adds or updates a single agent context.
Optional
file: FileAdds or updates multiple agent contexts.
Optional
files: File[]
AiAgentReference provides methods for managing AI agents, including retrieving, updating, and deleting agents, handling agent contexts, and interacting with chat or voice-based AI functionalities.