AgentResponse is the object that the agent returns as a response after a successfull run.

Props

An object with the following properties:

run_id
string

This field holds the unique identifier assigned to the specific run. It can be helpful for tracking and managing individual runs within your application.

session_id
string

This field indicates the session ID associated with the run. The session_id plays a crucial role in maintaining conversation context across multiple runs within the same session.

content
string

The generated text response.

audio
AudioRes[]

The generated audio chunks. (if using voice).

To understand what this is, you need to know how Scoopika generates audio. while the LLM is generating tokens, it takes sentences and create urls to read them as audio in real-time, allowing streaming for better performance. the url is returned as the read property and can only be read once.

Reference to AudioRes

tools_calls
ToolHistory[]

A record of the called tools during the run and their results.

Reference to ToolHistory

Was this page helpful?