Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

Say something to the batch's director

POST
/v1/studio/batches/{batch_id}/chat
curl --request POST \
--url http://localhost:8300/v1/studio/batches/example/chat \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "text": "example" }'

It; the director wakes (the messages that arrive while it thinks are read on its next wake) and answers with a chat event. It never waits on runs: it answers, searches, reads and writes memory, adds rows and changes rows not yet started (each through Submit’s checks; a rejected row gets a notice with the reason). 409 when the batch has ended or the director is off (the director is off: <why>), and when the chat holds 500 user messages (this chat is full; the director’s replies and notices never count); 429 above 6 messages a minute per batch (at most 6 messages a minute); 422 for a blank text.

batch_id
required
string

Batch UUID (malformed = 404)

Media typeapplication/json
object
text
required

Trimmed; blank = 422

string
>= 1 characters <= 2000 characters

Example generated

{
"text": "example"
}

Your message, stored

Media typeapplication/json

One message of a batch’s director chat

object
id
required
string format: uuid
role
required

Notice: the director’s system line (a row it added or changed was rejected, with the reason; a cap ended its wake)

string
Allowed values: user director notice
text
required
string
<= 4000 characters
at
required
string format: date-time
wake
required

Director and notice: the wake it came from; null for the user’s

integer | null
>= 1
tool_calls
required

Director: the wake’s tool calls

Array<object>
<= 64 items

One tool call an agent made, as run

object
id
required
string
tool
required
string
Allowed values: gallery_search memory_read memory_write library_read rows_add rows_edit route set_items
args
required
object
result
required
object | null
error
required
string | null
rows
required

Rows it added or changed in that wake

Array<integer>
<= 64 items

Example

{
"role": "user",
"tool_calls": [
{
"tool": "gallery_search"
}
]
}

Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Not found

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

The resource’s state forbids this

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

A per-resource rate limit

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}