The batch's director chat (the newest 500 messages, oldest first), with the director's state
const url = 'http://localhost:8300/v1/studio/batches/example/chat';const options = { method: 'GET', headers: {'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8300/v1/studio/batches/example/chat \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'. Every message of the chat (at most 500). New ones arrive on the batch’s event stream as chat events (GET …/events); the director’s state on batch events (Batch.director). 404 for a batch whose pipeline has no director, and for another user’s batch.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Batch UUID (malformed = 404)
Responses
Section titled “Responses”The chat
object
object
The director agent node
Idle: asleep until a message or a row ends; waiting: its turn’s call is queued or held (Pause); thinking: a call or its tools run; off: the batch ended or max_wakes reached (POST …/chat is 409)
The newest 500, oldest first
One message of a batch’s director chat
object
Notice: the director’s system line (a row it added or changed was rejected, with the reason; a cap ended its wake)
Director and notice: the wake it came from; null for the user’s
Director: the wake’s tool calls
One tool call an agent made, as run
object
object
Rows it added or changed in that wake
Example
{ "director": { "state": "idle" }, "messages": [ { "role": "user", "tool_calls": [ { "tool": "gallery_search" } ] } ]}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}