Sends a prompt and receives a full string response.
The text prompt to send to the agent.
Optional
options: AiAskOptions<T>Optional parameters for the AI ask request.
Optional
jobId: string(Optional) A unique identifier for this request. Use it with squid.jobs().awaitJob(jobId)
or
squid.jobs().getJob(jobId)
to track progress. Make sure each job ID is both unique and kept private—anyone who
knows it can look up the job’s status.
Sends a prompt and not wait for the result - the result can be tracked using the job ID
(squid.jobs().awaitJob(jobId)
or squid.jobs().getJob(jobId)). @param prompt The text prompt to send to the agent. @param jobId A unique identifier for this request. Use it with
squid.jobs().awaitJob(jobId)or
squid.jobs().getJob(jobId)`
to track progress. Make sure each job ID is both unique and kept private—anyone who knows it can look up the job’s status.
Optional
options: AiAskOptions<T>Optional parameters for the AI ask request.
Sends a prompt and gets both text and voice response from the agent.
The text prompt to send to the agent.
Optional
options: AiAskOptionsWithVoice<T>Optional parameters for the AI ask request.
Optional
jobId: string(Optional) A unique identifier for this request. Use it with squid.jobs().awaitJob(jobId)
or
squid.jobs().getJob(jobId)
to track progress. Make sure each job ID is both unique and kept private—anyone who
knows it can look up the job’s status.
Sends a prompt to the agent and receives streamed text responses.
The text prompt to send to the agent.
Optional
options: AiChatOptionsWithoutVoice<T>Optional parameters for the AI ask request.
Optional
jobId: string(Optional) A unique identifier for this request. Use it with squid.jobs().awaitJob(jobId)
or
squid.jobs().getJob(jobId)
to track progress. Make sure each job ID is both unique and kept private—anyone who
knows it can look up the job’s status.
Deletes 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.
The audio file to transcribe and send to the agent.
Optional
options: AiAskOptions<T>Optional parameters for the AI ask request.
Optional
jobId: string(Optional) A unique identifier for this request. Use it with squid.jobs().awaitJob(jobId)
or
squid.jobs().getJob(jobId)
to track progress. Make sure each job ID is both unique and kept private—anyone who
knows it can look up the job’s status.
Transcribes audio and gets both text and voice response from the agent.
The audio file to transcribe and send to the agent.
Optional
options: AiAskOptionsWithVoice<T>Optional parameters for the AI ask request.
Optional
jobId: string(Optional) A unique identifier for this request. Use it with squid.jobs().awaitJob(jobId)
or
squid.jobs().getJob(jobId)
to track progress. Make sure each job ID is both unique and kept private—anyone who
knows it can look up the job’s status.
Transcribes the given file and performs a chat interaction.
The audio file to transcribe and send to the agent.
Optional
options: AiChatOptionsWithoutVoiceOptional parameters for the AI ask request.
Optional
jobId: string(Optional) A unique identifier for this request. Use it with squid.jobs().awaitJob(jobId)
or
squid.jobs().getJob(jobId)
to track progress. Make sure each job ID is both unique and kept private—anyone who
knows it can look up the job’s status.
Updates 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.