RunStarted
AG-UI A turn of the model starts.
threadId- The session.
runId- The turn.
inputoptional- What the turn was started with.
contestooptional- Where it runs:
{ progetto, cartella, branch }.
Desktop reference
What a TALOS Desktop session streams: the AG-UI events, the events TALOS adds, and the stream of a workflow run.
Reference for TALOS Desktop 0.2.4 generated from the source of the release · released
A session streams what happens in it as it happens: GET /api/v1/sessions/{sessionId}/events (server-sent events, see Local API). The events follow the AG-UI protocol; TALOS adds its own, marked below. A field TALOS adds to a standard event is optional for a client that does not know it.
On connection the stream first replays what the session already recorded, then continues live; talos.fine-rigiocata marks the boundary.
RunStartedA turn of the model starts.
threadIdrunIdinputoptionalcontestooptional{ progetto, cartella, branch }.RunFinishedThe turn ended well.
threadIdrunIdoutcomeoptional{ type: "success" }.resultoptional{ detto, compattazioni, premesseNegate, usage }: the final answer, how many compactions happened, the premises the model denied, and the token usage (null when no provider reported it).RunErrorThe turn ended without success: an error, a stop, or the turn limit.
messageoptionalcodeoptionalfermato for a stop), or an error code.classeoptionalmessageChiaveoptionalmessage in your language.messageParamsoptionalRunRedirectRequestedYou sent a message to redirect the turn in progress.
redirectIdtestoRunRedirectAppliedThe redirect reached the model.
redirectIdtestoimmaginioptionalbollaoptional{ testo, allegati }), when it differs from the text the model receives.RunRedirectCancelledThe redirect was withdrawn before it reached the model.
redirectIdRunRedirectFailedThe redirect could not be applied.
redirectIdmessagecodeoptionalreasonoptionalparamsoptionalTextMessageStartA message of the model begins.
messageIdroleassistant.TextMessageContentA piece of the message, as it streams.
messageIddeltaTextMessageEndThe message is complete.
messageIdReasoningMessageStartThe model’s reasoning begins (models and providers that expose it).
messageIdrolereasoning.ReasoningMessageContentA piece of the reasoning.
messageIddeltaReasoningMessageEndThe reasoning is complete.
messageIdToolCallStartThe model calls a tool.
toolCallIdtoolCallNameparentMessageIdoptionalavviatoAoptionaldaTestooptionalToolCallArgsThe arguments of the call, as JSON text (streamed in pieces).
toolCallIddeltaComandoUtenteIniziatoA command you typed yourself (! in the composer) starts: it is not a turn of the model and can run beside one.
comandoIdcomandoComandoUtenteFinitoYour command ended.
comandoIdcodiceoptionalenforcementoptionalerroreoptionalToolCallOutputOutput of a command while it runs: progress to show, not the result.
toolCallIddeltaToolCallResultThe result of the call, as the model reads it.
messageIdtoolCallIdcontentroletool.isErroroptionaltrue when the tool failed.durataMsoptionalcomandooptionalcwdoptionalstdoutoptionalstderroptionalexitCodeoptionalinSfondooptionaltrue when the command went on in the background.fileSfondooptionalfileSfondoMostratooptionalsfondoDaoptionalpersona (you), tempo-scaduto (its time ran out) or avvio (started that way).receiptoptionaloutcomeoptionalcancelled when the call was cancelled before it started.interrottaoptionalduplicateoptionaltrue when the call was an identical copy of another call in the same answer, so it was not run.schedaChatgptoptionalsuspiciousoptional{ source, patterns, place? }, so the window can mark it.unaskedoptional{ oltre, minacce, automationId? }.refusaloptional{ code, retryable?, reason }.imagesoptionalStateDeltaA change of the session’s state, as JSON Patch operations.
delta/file/<path> when the agent wrote a file (value the new text, prima the text before, allegato a reference for binary files), /usage for the running token totals, /recuperoCronologia when the history was recovered on resume.ArtifactCreatedThe agent made an interactive visual (artifact_create).
messageIdidGET /api/v1/artifacts/{artifactId}.titolovoceLibreriaIdoptionalversioneoptionalWorkspaceChangedFiles of the session’s folder changed on disk.
percorsiApprovalRequestedThe agent waits for your approval before an action.
requestIdPOST /api/v1/sessions/{sessionId}/approve.azioneapprovabileFuorioptionalQueuedMessageDeliveredA message you queued reached the model.
testoApprovalResolvedThe approval was answered.
requestIdapprovatotrue or false.ambitooptionalcartella or percorso when the yes holds for that folder or path until the session ends.motivooptionalnessuna-interfaccia when nobody could answer and the server closed it.rispostoDaoptionalUserQuestionRequestedThe agent asks you a question (ask_user_question).
requestIdPOST /api/v1/sessions/{sessionId}/question.questionsatoptionaltoolCallIdoptionalorigineoptionalripristinabileoptionalMcpElicitationRequestedAn MCP server asks you for data (a form) or to open a page. Answer with POST /api/v1/sessions/{sessionId}/mcp-elicitation.
requestIdservermodeform or url.messagerequestedSchemaoptionalurloptionaldominiooptionalelicitationIdoptionalatoptionalMcpElicitationResolvedThe MCP request was answered, declined or cancelled (what you entered is never in the history).
requestIdactionaccept, decline or cancel.atoptionaldaoptionalmotivooptionalUserQuestionResolvedThe question was answered, skipped, cancelled or expired.
requestIdstatusanswersoptionalskippedoptionalnotesoptionalatoptionaldaoptionalmotivooptionalrispostoDaoptionalHookInvokedA trusted hook ran (see Hooks).
hookIdtipoazioneesito{ consentito, motivo? }.RuntimeFallbackThe local engine failed and the turn continues on a cloud model (only with fallbackConsent).
fromlocal.toopenrouter.reasonproviderlocal.runtimeIdmodelIdbackendatA CUSTOM event is { "type": "CUSTOM", "name": "…", "value": … }:
talos.server-localetalos.finestra-localetalos.agentitalos.impostazioni-sessionetalos.coda{ voci, inPausa }.talos.compattazionefase is inizio, fine or annullata, with the tokens before and after and whether it can be undone.talos.compattazione-preparatatalos.riassunto-modello-inutilizzabiletalos.processo-sfondo{ toolCallId, esito, codice, segnale, finitoAlle }, and fermatoDallaPersona when you stopped it.attesa-approvazione-silenzio{ requestId, attesaMs, tipo }, sent while it waits (progress, not history).talos.plantalos.plan.v1): proposed, revised, approved or rejected.talos.agent-dialoguetalos.figlie-fermatetalos.richiesta-piano-fallitatalos.journal-riparatotalos.accesso-chatgpttalos.mcp-avvioprova: true): { id, esiti }, one result per server, with the reason when it did not start.talos.scheda-lentatalos.sessione-chiusaPOST …/close): { alle, giri, comandi }, when, and how many turns and background commands were stopped.talos.processo-tolto{ toolCallId, toltoAlle }.talos.controllo-spentotalos.provider-retrytalos.provider-retry.v1): the attempt, the most attempts, the HTTP status and how long it waits.talos.cache-ricominciatatalos.fornitore-evitatotalos.continuazionetalos.chiamata-nel-testotalos.fornitore-a-valletalos.fornitore-a-valle.v1): { fornitore, modello? }.talos.attesa-del-motoretalos.ripiego-localeavviso-fornitorecambio-fornitoreconsumo-fornitoreconsumo-di-serviziotalos.richiesta-non-inviatatalos.fine-rigiocatatalos.obiettivo{ obiettivo, tetti? }), sent when you subscribe and when it changes; state, not history.GET /api/v1/sessions/{sessionId}/workflows/{runId}/events streams named events; it closes when the run is over.
event: run-updateid is the run’s new sequence number.event: run-error{ code }. The stream closes.