Desktop reference · Local API
Sessions
Start, list, fork, resume and configure sessions; their history, metrics, context, commands and attachments. 34 operations of the TALOS Desktop local API.
Reference for TALOS Desktop 0.2.4
Start, list, fork, resume and configure sessions; their history, metrics, context, commands and attachments. Paths are relative to /api/v1.
POST /sessions/{sessionId}/compaction/{compactionId}/undo
Section titled “POST /sessions/{sessionId}/compaction/{compactionId}/undo”Undo a compaction of the conversation, automatic or manual: the full history comes back.
The compaction id is the timestamp of its record (the one the compaction event carries).
Path
sessionId- The session.
compactionId- The compaction: the instant it was recorded (from the
talos.compattazioneevent).
Body
None: the body is empty.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/compaction/skip
Section titled “POST /sessions/{sessionId}/compaction/skip”Skip the summary a turn is waiting for: the turn goes on with a summary written without the model. Answers { saltato }, false when no summary was being waited for.
Path
sessionId- The session.
Body
None: the body is empty.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/compaction-policy
Section titled “GET /sessions/{sessionId}/compaction-policy”The compaction policy of a session: the limit that actually applies, and when the conversation is compacted.
Path
sessionId- The session.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/last-request
Section titled “GET /sessions/{sessionId}/last-request”What the model received in its last call: system prompt, messages and tools, with a breakdown by category.
Kept in memory on the server only (never on disk, no images); ultimaRichiesta is null until the conversation calls the model after the server started.
Path
sessionId- The session.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/compaction-state
Section titled “GET /sessions/{sessionId}/compaction-state”What the last compaction of an older conversation kept: its summary and index (read only).
Path
sessionId- The session.
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
CONSENT_REQUIRED | 403 | — |
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/process-outputs/{processOutputId}
Section titled “GET /sessions/{sessionId}/process-outputs/{processOutputId}”Read the retained output of a command, a page of bytes at a time, or download it whole; it never runs the command again.
Path
sessionId- The session.
processOutputId- The retained output of a command: the
outputIdits result names.
Query
streamstdoutorstderr.offset- Where the page starts, in bytes (default 0).
limit- How many bytes.
formatdownloadfor the whole retained output as a file (withoutoffsetorlimit).
Answers The bytes themselves (a file or an image), not JSON.
POST /chat-images
Section titled “POST /chat-images”Upload an image to attach to a message (JSON with the image data, up to 7 MB).
Body
Answers The bytes themselves (a file or an image), not JSON.
Errors1
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /chat-images/{imageHash}
Section titled “GET /chat-images/{imageHash}”Read an uploaded image back, by the SHA-256 of its bytes.
Path
imageHash- The image: its SHA-256 (64 hexadecimal digits).
Answers The bytes themselves (a file or an image), not JSON.
Errors1
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /tasks
Section titled “GET /tasks”List the task templates a new session can start from.
Answers The JSON envelope.
Errors1
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions
Section titled “GET /sessions”List the sessions (an empty list when none has started).
Answers The JSON envelope.
Errors1
| Code | Status | Meaning |
|---|---|---|
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions
Section titled “POST /sessions”Start a session from a task template, with the model, the permissions and the mode it runs with.
taskId is required. With provider: "local", runtimeId and modelId are required too.
Body
taskIdrequired- The task template to start from: an id from
GET /api/v1/tasks. modello- The model, as OpenRouter names it (
vendor/model-name), or<provider>:<model>for a provider’s own endpoint; default: the server’s. modelloPlanner- The model that writes plans, in the same form as
modello. reasoning- Reasoning for models that support it:
{ effort?, summary? },effortone ofmax,xhigh,high,medium,low,minimal,none;summaryone ofauto,concise,detailed. fasciaVeloce- Not yet described.
clientdesktop(default) ormobile: the kind of client that starts the session.permessi- What the session may do on its own:
Read only,Workspace write(default),On requestorFull access. See Permissions. permessiPerAttrezzo- Per-tool exceptions to
permessi: an object from tool (scrivi,file_edit,prova,shell,document_create,generate_image) tosempre(always),chiedi(ask) ornega(deny). modalitaOperativanormale(default) orpiano: in Plan mode the session plans first and changes nothing until you approve the plan.providercloud(default) orlocal: a model that runs on this computer.runtimeId- With
provider: "local": the local engine. modelId- With
provider: "local": the installed model. fallbackConsent- With
provider: "local":trueto allow continuing on a cloud model when the local engine fails. fallbackProviders- Up to 8 providers to continue with when the main one fails:
[{ provider, model }], each model declared able to use tools. linguaInterfaccia- The language of the interface,
itoren: the sentences the server writes for you in this session (for example the reason on an approval card) follow it. linguaDelleRisposte- Not yet described.
linguaDelMessaggio- Not yet described.
Answers The JSON envelope.
Errors4
| Code | Status | Meaning |
|---|---|---|
MODEL_ID_INVALID | 400 | The model name is not one this server recognizes (expected vendor/model-name). |
PERMISSIONS_INVALID | 400 | The permissions are not among those allowed. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
REASONING_INVALID | 400 | The reasoning level is not one of those allowed. |
Any operation can also answer the common errors.
POST /sessions/custom
Section titled “POST /sessions/custom”Start a free session on a folder: an assignment in your words, with an optional command that proves the work.
Exactly one of cartellaId, cartellaLibera or workspaceLaunchId names the folder; consegna is required. The other fields are those of POST /api/v1/sessions. Answers { sessionId }.
Body
cartellaId- The folder, as an id from
GET /api/v1/projects. cartellaLibera- The folder, as an absolute path.
workspaceLaunchId- The folder handed over by the launcher (
POST /api/v1/workspace-launches). consegnarequired- The assignment, in your words.
comandoProva- The command that proves the work is done (default
npm test). modello- The model, as OpenRouter names it (
vendor/model-name), or<provider>:<model>for a provider’s own endpoint; default: the server’s. modelloPlanner- The model that writes plans, in the same form as
modello. reasoning- Reasoning for models that support it:
{ effort?, summary? },effortone ofmax,xhigh,high,medium,low,minimal,none;summaryone ofauto,concise,detailed. fasciaVeloce- Not yet described.
clientdesktop(default) ormobile: the kind of client that starts the session.permessi- What the session may do on its own:
Read only,Workspace write(default),On requestorFull access. See Permissions. permessiPerAttrezzo- Per-tool exceptions to
permessi: an object from tool (scrivi,file_edit,prova,shell,document_create,generate_image) tosempre(always),chiedi(ask) ornega(deny). modalitaOperativanormale(default) orpiano: in Plan mode the session plans first and changes nothing until you approve the plan.fallbackProviders- Up to 8 providers to continue with when the main one fails:
[{ provider, model }], each model declared able to use tools. linguaInterfaccia- The language of the interface,
itoren: the sentences the server writes for you in this session (for example the reason on an approval card) follow it. linguaDelleRisposte- Not yet described.
linguaDelMessaggio- Not yet described.
fermatrueto open the conversation without starting a turn: for a new chat that begins with/goal, where the work starts only when you confirm the goal’s checks.allegaSeTroppoGrande- Not yet described.
ricerca- Not yet described.
paginaBrowser- Not yet described.
immagini- Images to attach to the first message: references returned by
POST /api/v1/chat-images.
Answers The JSON envelope.
Errors5
| Code | Status | Meaning |
|---|---|---|
MODEL_ID_INVALID | 400 | The model name is not one this server recognizes (expected vendor/model-name). |
NOT_ALLOWED_REMOTELY | 403 | From a paired device a new session starts only in one of the folders allowed on the computer; any other folder is chosen on the computer. |
PERMISSIONS_INVALID | 400 | The permissions are not among those allowed. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
REASONING_INVALID | 400 | The reasoning level is not one of those allowed. |
Any operation can also answer the common errors.
GET /artifacts/{artifactId}
Section titled “GET /artifacts/{artifactId}”An HTML artifact the agent wrote, served sandboxed so its scripts can never reach the app’s own storage.
Path
artifactId- The artifact.
Answers The bytes themselves (a file or an image), not JSON.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/export
Section titled “GET /sessions/{sessionId}/export”Export a whole session: its messages and events, as one JSON document.
Path
sessionId- The session.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/processes
Section titled “GET /sessions/{sessionId}/processes”The process ledger of a session: every command it ran (by the agent’s shell and prova tools or by you), with origin, start, duration and outcome, and the stall guard (silence, loops).
Read only; the guard signals, and POST …/stop is what stops. A session with no events yet answers processi: null with motivo: "non-registrato", never an empty list: “not recorded” and “no processes” are different facts.
Path
sessionId- The session.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/processes/resources
Section titled “GET /sessions/{sessionId}/processes/resources”The CPU and memory of the commands still running in a session, measured by TALOS on Windows, in WSL and on Linux.
The Processes tab asks every 5 seconds while it is open; the sampler starts at the first request and stops by itself 30 seconds after the last. A value that cannot be measured is null.
Path
sessionId- The session.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/metrics
Section titled “GET /sessions/{sessionId}/metrics”The measures of a session: its turns, prompt-cache use, time to first token, how it closed, time spent reasoning, and whether a restart interrupted it.
A session with no events yet answers registrato: false with a motivo, never zeros: “not measured” and “zero” are different facts. With eta, the answer adds etaEvento: how long ago that event happened, so a chat reopened while the model is silent can say for how long; null after a restart, never a zero.
Path
sessionId- The session.
Query
eta- The sequence number of an event (a non-negative integer, once): the answer says how old it is.
Answers The JSON envelope.
Errors1
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
Any operation can also answer the common errors.
DELETE /sessions/{sessionId}/messages/{messageId}
Section titled “DELETE /sessions/{sessionId}/messages/{messageId}”Remove a message from the conversation. Refused with 409 while the session is still running.
Path
sessionId- The session.
messageId- The message.
Body
None: the body is empty.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/children
Section titled “GET /sessions/{sessionId}/children”The sub-agents a session started: its real children, with their state.
Path
sessionId- The session.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
GET /sessions/{sessionId}/agent-timeline
Section titled “GET /sessions/{sessionId}/agent-timeline”The timeline of the agents of a session: who did what, in order.
Path
sessionId- The session.
Query
after- Only entries after this sequence number.
through- Only entries up to this sequence number.
limit- How many entries.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/rename
Section titled “POST /sessions/{sessionId}/rename”Rename a session.
Path
sessionId- The session.
Body
nomerequired- The new name.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/delete
Section titled “POST /sessions/{sessionId}/delete”Delete a session, and the workflow runs of its conversation with it. A session still running, or with a run not finished, is refused first.
Path
sessionId- The session.
Body
None: the body is empty.
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
WORKFLOW_RUN_NOT_FINISHED | 409 | A workflow of this conversation is still running: cancel it first. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/delegation/pause
Section titled “POST /sessions/{sessionId}/delegation/pause”Pause a delegated agent: the tool it is using finishes, then it waits with its conversation kept, also across a restart.
The session in the path is the delegated agent’s own. The body is empty. DELEGATION_STATE_CONFLICT when its state does not allow it; 404 when it is not a delegated agent.
Path
sessionId- The session.
Body
A JSON object, checked by the store it goes to.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/delegation/resume
Section titled “POST /sessions/{sessionId}/delegation/resume”Resume a paused delegated agent: a new message in the same agent, and its result reaches its parent as usual.
The session in the path is the delegated agent’s own. The body is empty. DELEGATION_STATE_CONFLICT when its state does not allow it.
Path
sessionId- The session.
Body
A JSON object, checked by the store it goes to.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/delegation/retry
Section titled “POST /sessions/{sessionId}/delegation/retry”Retry a delegated agent that ended without success, in the same agent (only you can retry; the model can pause and resume).
The session in the path is the delegated agent’s own. The body is empty. DELEGATION_STATE_CONFLICT when its state does not allow it.
Path
sessionId- The session.
Body
A JSON object, checked by the store it goes to.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/processes/{toolCallId}/stop
Section titled “POST /sessions/{sessionId}/processes/{toolCallId}/stop”Stop one running command of the Processes tab; the turn goes on. PROCESS_NOT_RUNNING when it has already ended (no body).
Path
sessionId- The session.
toolCallId- The command: the id of the tool call that started it, as the Processes tab lists it.
Body
None: the body is empty.
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
PROCESS_NOT_RUNNING | 409 | The command has already ended. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/processes/{toolCallId}/remove
Section titled “POST /sessions/{sessionId}/processes/{toolCallId}/remove”Remove an ended command from the Processes tab, for good. PROCESS_STILL_RUNNING when it is still running: stop it first (no body).
Path
sessionId- The session.
toolCallId- The command: the id of the tool call that started it, as the Processes tab lists it.
Body
None: the body is empty.
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
PROCESS_STILL_RUNNING | 409 | The command is still running: stop it before removing it. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/processes/{toolCallId}/sfondo
Section titled “POST /sessions/{sessionId}/processes/{toolCallId}/sfondo”Move a running command to the background: it keeps running, its output goes to a file, and the turn goes on (no body; it is not a stop).
Path
sessionId- The session.
toolCallId- The command: the id of the tool call that started it, as the Processes tab lists it.
Body
None: the body is empty.
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
PROCESS_NOT_RUNNING | 409 | The command has already ended. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/fork
Section titled “POST /sessions/{sessionId}/fork”Fork a session: a new session that starts from the same conversation.
Path
sessionId- The session.
Body
primaDelGiro- Not yet described.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/resume
Section titled “POST /sessions/{sessionId}/resume”Resume a session: without a body, it resumes an interrupted turn; with a message, it is the next turn of the chat.
Path
sessionId- The session.
Body
paginaBrowser- Not yet described.
messaggio- A new message (a non-empty string).
allegaSeTroppoGrande- Not yet described.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/settings
Section titled “POST /sessions/{sessionId}/settings”Change a session’s preferences: model, planner model, reasoning, permissions, fallback providers or mode (at least one).
Path
sessionId- The session.
Body
modello- The model, as OpenRouter names it (
vendor/model-name), or<provider>:<model>for a provider’s own endpoint; default: the server’s. modelloPlanner- The model that writes plans, in the same form as
modello. reasoning- Reasoning for models that support it:
{ effort?, summary? },effortone ofmax,xhigh,high,medium,low,minimal,none;summaryone ofauto,concise,detailed. fasciaVeloce- Not yet described.
permessi- What the session may do on its own:
Read only,Workspace write(default),On requestorFull access. See Permissions. permessiPerAttrezzo- Per-tool exceptions to
permessi: an object from tool (scrivi,file_edit,prova,shell,document_create,generate_image) tosempre(always),chiedi(ask) ornega(deny). unisciPermessiPerAttrezzo- Like
permessiPerAttrezzo, but merged into the per-tool choices already made instead of replacing them (“for this session” on an approval card). Not together withpermessiPerAttrezzo. rispettaNega- With
unisciPermessiPerAttrezzoonly:trueto leave a tool set tonega(deny) as it is. fallbackProviders- Up to 8 providers to continue with when the main one fails:
[{ provider, model }], each model declared able to use tools. modalitaOperativanormaleorpiano(plan first). The formerworkflowmode is retired (MODE_WORKFLOW_RETIRED).linguaInterfaccia- The language of the interface,
itoren: the sentences the server writes for you in this session (for example the reason on an approval card) follow it. linguaDelleRisposte- Not yet described.
motoRidotto- Not yet described.
Answers The JSON envelope.
Errors5
| Code | Status | Meaning |
|---|---|---|
MODEL_ID_INVALID | 400 | The model name is not one this server recognizes (expected vendor/model-name). |
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
PERMISSIONS_INVALID | 400 | The permissions are not among those allowed. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
REASONING_INVALID | 400 | The reasoning level is not one of those allowed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/compact
Section titled “POST /sessions/{sessionId}/compact”Compact the conversation now, as the automatic compaction does: older turns are summarized so the context has room again, your first request and the last three are kept word for word, and the compaction can be undone. When it does not compact, it says why (the conversation is already at its minimum, or a summary would not make it shorter).
Path
sessionId- The session.
Body
None: the body is empty.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/migliora-prompt
Section titled “POST /sessions/{sessionId}/migliora-prompt”Improve a prompt before sending it: the session’s model (local or cloud) rewrites it as a clearer brief, without sending it.
Path
sessionId- The session.
Body
promptrequired- The text to improve (up to 12,000 characters).
profondita- How far to go:
concisa(concise),equilibrata(balanced, default) orestesa(extended).
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
PROVIDER_RUNTIME_UNAVAILABLE | 503 | The provider’s preferences could not be saved: check the Doctor. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.
POST /sessions/{sessionId}/close
Section titled “POST /sessions/{sessionId}/close”Close a session: stop its turn and those of its agents, every command they left running in the background, and its terminals (the body must be empty). The conversation stays in the list.
Answers how many turns, commands and terminals were stopped. The window shows that the session was closed (talos.sessione-chiusa).
Path
sessionId- The session.
Body
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
NOT_FOUND | 404 | Nothing answers at this address, or the resource it names does not exist. |
PAYLOAD_LIMIT | 413 | The body is larger than the server accepts: shorten it, or put the text in a file and attach it. |
QUERY_INVALID | 400 | The request is not valid: a query parameter or a body field is missing, unknown or malformed. |
Any operation can also answer the common errors.