Send Message
Continue a session with a message. Darwin uses its context to determine the next step.
POST
/
v3
/
sessions
/
{sessionId}
/
messages
Send Message
curl --request POST \
--url https://api.darwin.so/api/v3/sessions/{sessionId}/messages \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"clientMessageId": "followup-002",
"message": "Focus on papers published this year."
}
'import requests
url = "https://api.darwin.so/api/v3/sessions/{sessionId}/messages"
payload = {
"clientMessageId": "followup-002",
"message": "Focus on papers published this year."
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
clientMessageId: 'followup-002',
message: 'Focus on papers published this year.'
})
};
fetch('https://api.darwin.so/api/v3/sessions/{sessionId}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.darwin.so/api/v3/sessions/{sessionId}/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'clientMessageId' => 'followup-002',
'message' => 'Focus on papers published this year.'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.darwin.so/api/v3/sessions/{sessionId}/messages"
payload := strings.NewReader("{\n \"clientMessageId\": \"followup-002\",\n \"message\": \"Focus on papers published this year.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.darwin.so/api/v3/sessions/{sessionId}/messages")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"clientMessageId\": \"followup-002\",\n \"message\": \"Focus on papers published this year.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.darwin.so/api/v3/sessions/{sessionId}/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"clientMessageId\": \"followup-002\",\n \"message\": \"Focus on papers published this year.\"\n}"
response = http.request(request)
puts response.read_body{
"conversationId": "<string>",
"status": "planning",
"goal": "<string>",
"messages": [
{
"role": "user",
"text": "<string>",
"at": "2023-11-07T05:31:56Z"
}
],
"revisions": [
{
"revisionId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"searchId": "<string>",
"summary": "<string>",
"plan": {
"goal": "<string>",
"successCriteria": [
"<string>"
],
"steps": [
{
"stepId": "<string>",
"objective": "<string>",
"agentId": "<string>",
"operationId": "<string>",
"operationRevision": 123,
"alternativeAgentIds": [],
"dependsOn": [],
"evidenceRequired": "<string>",
"accessRequired": [],
"approvalRequired": true
}
],
"stoppingPoints": []
},
"agents": [
{
"agentId": "<string>",
"operationId": "<string>",
"operationRevision": 123,
"name": "<string>",
"description": "<string>",
"canStartThread": true,
"readiness": "ready",
"canAttemptThread": true
}
]
}
],
"latestRevisionId": "<string>",
"quote": {
"quoteId": "<string>",
"revisionId": "<string>",
"currency": "USD",
"totalBudgetMinor": 123,
"rateBps": 900,
"rateBasis": "<string>",
"maximumExecutionMinor": 4503599627370495,
"maximumFeeMinor": 4503599627370495,
"unallocatedMinor": 4503599627370495,
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"fundingStatus": "not_authorized",
"cancellationTerms": "<string>"
},
"funding": {
"fundingAuthorizationId": "<string>",
"quoteId": "<string>",
"revisionId": "<string>",
"totalBudgetMinor": 123,
"currency": "USD",
"status": "reserving",
"createdAt": "2023-11-07T05:31:56Z"
},
"run": {
"runId": "<string>",
"revisionId": "<string>",
"quoteId": "<string>",
"actingAiId": "<string>",
"status": "starting",
"startedAt": "2023-11-07T05:31:56Z",
"settlement": {
"currency": "USD",
"executionSpendMinor": 4503599627370495,
"outcomeFeeMinor": 4503599627370495,
"returnedMinor": 4503599627370495
},
"steps": [
{
"stepId": "<string>",
"agentId": "<string>",
"operationId": "<string>",
"operationRevision": 123,
"status": "pending",
"threadId": "<string>",
"errorCode": "<string>",
"actRequestId": "<string>",
"acceptedMessageId": "<string>",
"observation": {
"readStatus": "available",
"needsAttention": true,
"pendingRequestIds": [
"<string>"
],
"confirmedResultIds": [
"<string>"
]
}
}
]
},
"previousRuns": [],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"threadId": "<string>",
"delivery": {
"version": "composer.delivery.v1",
"audience": "human",
"status": "composed",
"markdown": "<string>",
"ui": {
"version": "darwinui-agent-v1",
"components": [
{
"id": "<string>",
"kind": "<string>",
"title": "<string>",
"data": "<unknown>",
"actions": [],
"text": "<string>"
}
],
"incomplete": []
},
"presentation": {
"version": "composer.v1",
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"mode": "live",
"request": {
"clientRequestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "<string>",
"message": "<string>",
"threadKind": "assist",
"mode": "live",
"host": {
"audience": "human",
"capabilities": [
"components",
"markdown",
"structured"
],
"viewport": "desktop",
"theme": "light"
},
"interaction": {
"type": "edit",
"fields": {},
"modality": "text"
},
"operationId": "<string>",
"authoring": {
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123
},
"audio": {
"kind": "speech",
"voice": "Rachel",
"speed": 0.95
},
"presentationOverride": "markdown",
"threadId": "<string>",
"turnId": "<string>",
"previousRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expectedRevision": 4503599627370495
},
"generated": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"facts": {
"agent": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"brand": {
"primary": "#0071E3",
"secondary": "#AF52DE",
"background": "#FFFFFF",
"foreground": "#171717",
"font": "system"
},
"loading": {
"kind": "darwin",
"asset": "<string>",
"poster": "<string>"
},
"appearance": {
"instructions": "<string>",
"componentContracts": [
{
"name": "<string>",
"description": "<string>"
}
],
"libraryName": "<string>",
"source": "darwin_ui",
"library": {
"schemaVersion": 1,
"name": "<string>",
"version": "<string>",
"importName": "<string>",
"entry": "<string>",
"files": {},
"components": [
{
"export": "<string>",
"description": "<string>",
"props": "<string>",
"example": "<string>",
"human": {
"description": "<string>",
"states": [
"input"
]
},
"agent": {
"description": "<string>",
"outputSchema": {},
"example": {},
"instructions": ""
}
}
]
}
}
},
"operations": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"available": true,
"reason": "<string>",
"fields": [
{
"name": "<string>",
"label": "<string>",
"type": "text",
"required": true,
"primary": true,
"encoding": "json",
"options": [
"<string>"
],
"multiple": true,
"description": "<string>",
"minimum": 123,
"maximum": 123,
"minLength": 4503599627370495,
"maxLength": 4503599627370495
}
],
"guidance": {
"openingQuestion": "",
"primaryAction": "",
"context": "",
"afterInput": "",
"success": "",
"recovery": ""
},
"experience": {
"version": 1,
"revision": 123,
"initialState": "<string>",
"instructions": "",
"states": [
{
"id": "<string>",
"description": "<string>",
"instructions": "",
"executionStatuses": [
"not_started"
],
"transitions": [
"<string>"
],
"variants": [
"<string>"
]
}
],
"variants": [
{
"id": "<string>",
"description": "<string>",
"instructions": "",
"modalities": [
"text",
"voice"
],
"presentation": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"bindings": [],
"runtimeComponents": [
{
"id": "<string>",
"sectionId": "<string>",
"instructions": "<string>",
"components": [],
"inputFields": []
}
],
"argumentBindings": [
{
"field": "<string>",
"target": "<string>"
}
]
}
]
},
"revision": 123,
"inputSchema": {}
}
],
"execution": {
"threadId": "<string>",
"turnId": "<string>",
"status": "not_started",
"evidence": [
{
"id": "<string>",
"text": "<string>",
"verification": "provider_reported"
}
]
},
"sessionContext": {
"goal": "<string>",
"brief": "<string>",
"messages": [
{
"role": "user",
"text": "<string>"
}
]
}
},
"markdown": "<string>",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy": {
"id": "<string>",
"version": 0,
"probability": 0.5,
"applied": [
{
"id": "<string>",
"version": 0,
"scope": "global",
"probability": 0.5
}
]
},
"diagnostics": {
"model": "<string>",
"generationMs": 123,
"inputTokens": 123,
"outputTokens": 123,
"repairs": 123,
"fallback": "<string>"
},
"createdAt": "<string>",
"selection": {
"version": "composer-selection.v1",
"catalogRevision": 123,
"catalogHash": "<string>",
"operationId": "<string>",
"stateId": "<string>",
"variantId": "<string>",
"model": "<string>",
"confidence": 0.5,
"fallback": "<string>",
"latencyMs": 1,
"inputTokens": 1
},
"decision": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model": "<string>",
"questionVersion": "<string>",
"catalogVersion": "<string>",
"mode": "shadow",
"eligible": [
"markdown"
],
"selected": "markdown",
"supporting": [],
"override": "markdown",
"confidence": 0.5,
"probabilities": [
{
"value": "markdown",
"probability": 0.5
}
],
"transition": "retain",
"fallback": "<string>",
"latencyMs": 1,
"inputTokens": 1,
"appliedPolicies": [
{
"id": "<string>",
"version": 123,
"scope": "<string>",
"probability": 0.5
}
],
"audio": {
"kind": "speech",
"voice": "Rachel",
"speed": 0.95
},
"audioSelection": {
"model": "<string>",
"questionVersion": "<string>",
"latencyMs": 1,
"inputTokens": 0,
"answers": [
{
"name": "<string>",
"choice": "<string>",
"confidence": 0.5,
"probabilities": [
{
"value": "<string>",
"probability": 0.5
}
]
}
]
}
},
"experience": {
"decisionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"surfaces": [
{
"id": "<string>",
"capability": "markdown",
"role": "primary",
"status": "ready",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sessionId": "<string>",
"actionReferences": [
"<string>"
],
"evidenceReferences": [
"<string>"
],
"assetJobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"generated": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"markdown": "<string>",
"failure": "<string>"
}
]
}
},
"runId": "<string>"
},
"sessionId": "<string>",
"threadBrief": "<string>",
"threadTitle": "<string>",
"conversation": {
"turns": [
{
"turnId": "<string>",
"clientMessageId": "<string>",
"message": "<string>",
"status": "queued",
"blocks": [
{
"type": "live_consent",
"text": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"presentation": "chat",
"composer": {
"version": "composer.v1",
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"mode": "live",
"request": {
"clientRequestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "<string>",
"message": "<string>",
"threadKind": "assist",
"mode": "live",
"host": {
"audience": "human",
"capabilities": [
"components",
"markdown",
"structured"
],
"viewport": "desktop",
"theme": "light"
},
"interaction": {
"type": "edit",
"fields": {},
"modality": "text"
},
"operationId": "<string>",
"authoring": {
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123
},
"audio": {
"kind": "speech",
"voice": "Rachel",
"speed": 0.95
},
"presentationOverride": "markdown",
"threadId": "<string>",
"turnId": "<string>",
"previousRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expectedRevision": 4503599627370495
},
"generated": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"facts": {
"agent": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"brand": {
"primary": "#0071E3",
"secondary": "#AF52DE",
"background": "#FFFFFF",
"foreground": "#171717",
"font": "system"
},
"loading": {
"kind": "darwin",
"asset": "<string>",
"poster": "<string>"
},
"appearance": {
"instructions": "<string>",
"componentContracts": [
{
"name": "<string>",
"description": "<string>"
}
],
"libraryName": "<string>",
"source": "darwin_ui",
"library": {
"schemaVersion": 1,
"name": "<string>",
"version": "<string>",
"importName": "<string>",
"entry": "<string>",
"files": {},
"components": [
{
"export": "<string>",
"description": "<string>",
"props": "<string>",
"example": "<string>",
"human": {
"description": "<string>",
"states": [
"input"
]
},
"agent": {
"description": "<string>",
"outputSchema": {},
"example": {},
"instructions": ""
}
}
]
}
}
},
"operations": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"available": true,
"reason": "<string>",
"fields": [
{
"name": "<string>",
"label": "<string>",
"type": "text",
"required": true,
"primary": true,
"encoding": "json",
"options": [
"<string>"
],
"multiple": true,
"description": "<string>",
"minimum": 123,
"maximum": 123,
"minLength": 4503599627370495,
"maxLength": 4503599627370495
}
],
"guidance": {
"openingQuestion": "",
"primaryAction": "",
"context": "",
"afterInput": "",
"success": "",
"recovery": ""
},
"experience": {
"version": 1,
"revision": 123,
"initialState": "<string>",
"instructions": "",
"states": [
{
"id": "<string>",
"description": "<string>",
"instructions": "",
"executionStatuses": [
"not_started"
],
"transitions": [
"<string>"
],
"variants": [
"<string>"
]
}
],
"variants": [
{
"id": "<string>",
"description": "<string>",
"instructions": "",
"modalities": [
"text",
"voice"
],
"presentation": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"bindings": [],
"runtimeComponents": [
{
"id": "<string>",
"sectionId": "<string>",
"instructions": "<string>",
"components": [],
"inputFields": []
}
],
"argumentBindings": [
{
"field": "<string>",
"target": "<string>"
}
]
}
]
},
"revision": 123,
"inputSchema": {}
}
],
"execution": {
"threadId": "<string>",
"turnId": "<string>",
"status": "not_started",
"evidence": [
{
"id": "<string>",
"text": "<string>",
"verification": "provider_reported"
}
]
},
"sessionContext": {
"goal": "<string>",
"brief": "<string>",
"messages": [
{
"role": "user",
"text": "<string>"
}
]
}
},
"markdown": "<string>",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy": {
"id": "<string>",
"version": 0,
"probability": 0.5,
"applied": [
{
"id": "<string>",
"version": 0,
"scope": "global",
"probability": 0.5
}
]
},
"diagnostics": {
"model": "<string>",
"generationMs": 123,
"inputTokens": 123,
"outputTokens": 123,
"repairs": 123,
"fallback": "<string>"
},
"createdAt": "<string>",
"selection": {
"version": "composer-selection.v1",
"catalogRevision": 123,
"catalogHash": "<string>",
"operationId": "<string>",
"stateId": "<string>",
"variantId": "<string>",
"model": "<string>",
"confidence": 0.5,
"fallback": "<string>",
"latencyMs": 1,
"inputTokens": 1
},
"decision": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model": "<string>",
"questionVersion": "<string>",
"catalogVersion": "<string>",
"mode": "shadow",
"eligible": [
"markdown"
],
"selected": "markdown",
"supporting": [],
"override": "markdown",
"confidence": 0.5,
"probabilities": [
{
"value": "markdown",
"probability": 0.5
}
],
"transition": "retain",
"fallback": "<string>",
"latencyMs": 1,
"inputTokens": 1,
"appliedPolicies": [
{
"id": "<string>",
"version": 123,
"scope": "<string>",
"probability": 0.5
}
],
"audio": {
"kind": "speech",
"voice": "Rachel",
"speed": 0.95
},
"audioSelection": {
"model": "<string>",
"questionVersion": "<string>",
"latencyMs": 1,
"inputTokens": 0,
"answers": [
{
"name": "<string>",
"choice": "<string>",
"confidence": 0.5,
"probabilities": [
{
"value": "<string>",
"probability": 0.5
}
]
}
]
}
},
"experience": {
"decisionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"surfaces": [
{
"id": "<string>",
"capability": "markdown",
"role": "primary",
"status": "ready",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sessionId": "<string>",
"actionReferences": [
"<string>"
],
"evidenceReferences": [
"<string>"
],
"assetJobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"generated": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"markdown": "<string>",
"failure": "<string>"
}
]
}
},
"target": {
"agentId": "<string>",
"operationId": "<string>"
},
"author": {
"type": "human",
"id": "<string>",
"name": "<string>",
"via": "darwin",
"viaAgent": {
"id": "<string>",
"name": "<string>",
"handle": "<string>"
}
},
"attachments": [
{
"name": "<string>",
"mimeType": "<string>"
}
],
"contextSummary": [
"<string>"
],
"searchResult": {
"searchId": "<string>",
"responseId": "<string>",
"previousResponseId": "<string>",
"contractVersion": "search-v3.0",
"status": "completed",
"response": {
"agents": [
{
"agentId": "<string>",
"agentSlug": "<string>",
"operationId": "<string>",
"operationRevision": 123,
"providerFamilyRef": "<string>",
"rank": 123,
"selected": true,
"name": "<string>",
"description": "<string>",
"requiredSetup": {
"kind": "credential",
"suppliedBy": "user",
"description": "<string>"
},
"executionRequirements": {
"contractVersion": "1.0.0",
"providerAuthentication": {
"state": "REQUIRED",
"mechanisms": [
"BEARER"
],
"placements": [
"HEADER"
],
"scopes": [
"<string>"
],
"evidence": "PROVIDER_DECLARED"
},
"operationCredentials": {
"state": "REQUIRED",
"sensitiveInputNames": [
"<string>"
]
},
"runtime": {
"kind": "REMOTE_MCP",
"package": {
"ecosystem": "<string>",
"identifier": "<string>",
"version": "<string>",
"runtimeProfile": "<string>"
},
"requiredEnvironmentNames": [
"<string>"
]
},
"payment": {
"state": "REQUIRED",
"termsDigest": "<string>"
},
"browser": {
"state": "REQUIRED",
"sessionKind": "ANONYMOUS"
},
"providerContract": {
"route": "RESOLVED",
"inputSchema": "CONCRETE",
"outputSchema": "CONCRETE"
},
"providerBlockers": [
{
"code": "PROVIDER_ROUTE_UNSUPPORTED",
"owner": "PROVIDER"
}
],
"derivation": {
"normalizerVersion": "execution-requirements-v1",
"sourceRevision": "<string>",
"sourceReceiptDigest": "<string>",
"completeness": "COMPLETE",
"derivationKey": "<string>"
}
},
"executionGuidance": {
"credentialSummaryCode": "<string>",
"credentialSummary": "<string>",
"setupSummaryCode": "<string>",
"setupSummary": "<string>",
"recordBlockers": [
{
"code": "PROVIDER_ROUTE_UNSUPPORTED",
"owner": "PROVIDER"
}
],
"primaryBlockerCode": "PROVIDER_ROUTE_UNSUPPORTED",
"rendererVersion": "execution-guidance-v1"
},
"readiness": "ready",
"canStartThread": true,
"reasons": [
"<string>"
],
"uncertainties": [
"<string>"
],
"providerCheck": "not_attempted",
"connectionMethods": [],
"connectionPrompt": "<string>",
"imageUrl": "<string>",
"avatarUrl": "<string>",
"canAttemptThread": true,
"inquiry": {
"status": "contacting",
"question": "<string>",
"replies": [
{
"messageId": "<string>",
"text": "<string>",
"at": "2023-11-07T05:31:56Z"
}
],
"fit": "matches",
"expiresAt": "2023-11-07T05:31:56Z",
"threadId": "<string>",
"description": "<string>",
"reason": "<string>"
}
}
],
"relatedSearches": [],
"question": "<string>",
"noMatchReason": "<string>",
"assessment": {
"outcome": "strong",
"explanation": "<string>"
},
"plan": {
"steps": [
{
"stepId": "<string>",
"agentId": "<string>",
"operationId": "<string>",
"objective": "<string>",
"dependsOn": [
"<string>"
],
"alternatives": [
{
"agentId": "<string>",
"operationId": "<string>"
}
]
}
]
},
"overview": "<string>"
},
"delivery": {
"version": "composer.delivery.v1",
"audience": "human",
"status": "composed",
"markdown": "<string>",
"ui": {
"version": "darwinui-agent-v1",
"components": [
{
"id": "<string>",
"kind": "<string>",
"title": "<string>",
"data": "<unknown>",
"actions": [],
"text": "<string>"
}
],
"incomplete": []
},
"presentation": {
"version": "composer.v1",
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"mode": "live",
"request": {
"clientRequestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "<string>",
"message": "<string>",
"threadKind": "assist",
"mode": "live",
"host": {
"audience": "human",
"capabilities": [
"components",
"markdown",
"structured"
],
"viewport": "desktop",
"theme": "light"
},
"interaction": {
"type": "edit",
"fields": {},
"modality": "text"
},
"operationId": "<string>",
"authoring": {
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123
},
"audio": {
"kind": "speech",
"voice": "Rachel",
"speed": 0.95
},
"presentationOverride": "markdown",
"threadId": "<string>",
"turnId": "<string>",
"previousRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expectedRevision": 4503599627370495
},
"generated": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"facts": {
"agent": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"brand": {
"primary": "#0071E3",
"secondary": "#AF52DE",
"background": "#FFFFFF",
"foreground": "#171717",
"font": "system"
},
"loading": {
"kind": "darwin",
"asset": "<string>",
"poster": "<string>"
},
"appearance": {
"instructions": "<string>",
"componentContracts": [
{
"name": "<string>",
"description": "<string>"
}
],
"libraryName": "<string>",
"source": "darwin_ui",
"library": {
"schemaVersion": 1,
"name": "<string>",
"version": "<string>",
"importName": "<string>",
"entry": "<string>",
"files": {},
"components": [
{
"export": "<string>",
"description": "<string>",
"props": "<string>",
"example": "<string>",
"human": {
"description": "<string>",
"states": [
"input"
]
},
"agent": {
"description": "<string>",
"outputSchema": {},
"example": {},
"instructions": ""
}
}
]
}
}
},
"operations": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"available": true,
"reason": "<string>",
"fields": [
{
"name": "<string>",
"label": "<string>",
"type": "text",
"required": true,
"primary": true,
"encoding": "json",
"options": [
"<string>"
],
"multiple": true,
"description": "<string>",
"minimum": 123,
"maximum": 123,
"minLength": 4503599627370495,
"maxLength": 4503599627370495
}
],
"guidance": {
"openingQuestion": "",
"primaryAction": "",
"context": "",
"afterInput": "",
"success": "",
"recovery": ""
},
"experience": {
"version": 1,
"revision": 123,
"initialState": "<string>",
"instructions": "",
"states": [
{
"id": "<string>",
"description": "<string>",
"instructions": "",
"executionStatuses": [
"not_started"
],
"transitions": [
"<string>"
],
"variants": [
"<string>"
]
}
],
"variants": [
{
"id": "<string>",
"description": "<string>",
"instructions": "",
"modalities": [
"text",
"voice"
],
"presentation": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"bindings": [],
"runtimeComponents": [
{
"id": "<string>",
"sectionId": "<string>",
"instructions": "<string>",
"components": [],
"inputFields": []
}
],
"argumentBindings": [
{
"field": "<string>",
"target": "<string>"
}
]
}
]
},
"revision": 123,
"inputSchema": {}
}
],
"execution": {
"threadId": "<string>",
"turnId": "<string>",
"status": "not_started",
"evidence": [
{
"id": "<string>",
"text": "<string>",
"verification": "provider_reported"
}
]
},
"sessionContext": {
"goal": "<string>",
"brief": "<string>",
"messages": [
{
"role": "user",
"text": "<string>"
}
]
}
},
"markdown": "<string>",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy": {
"id": "<string>",
"version": 0,
"probability": 0.5,
"applied": [
{
"id": "<string>",
"version": 0,
"scope": "global",
"probability": 0.5
}
]
},
"diagnostics": {
"model": "<string>",
"generationMs": 123,
"inputTokens": 123,
"outputTokens": 123,
"repairs": 123,
"fallback": "<string>"
},
"createdAt": "<string>",
"selection": {
"version": "composer-selection.v1",
"catalogRevision": 123,
"catalogHash": "<string>",
"operationId": "<string>",
"stateId": "<string>",
"variantId": "<string>",
"model": "<string>",
"confidence": 0.5,
"fallback": "<string>",
"latencyMs": 1,
"inputTokens": 1
},
"decision": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model": "<string>",
"questionVersion": "<string>",
"catalogVersion": "<string>",
"mode": "shadow",
"eligible": [
"markdown"
],
"selected": "markdown",
"supporting": [],
"override": "markdown",
"confidence": 0.5,
"probabilities": [
{
"value": "markdown",
"probability": 0.5
}
],
"transition": "retain",
"fallback": "<string>",
"latencyMs": 1,
"inputTokens": 1,
"appliedPolicies": [
{
"id": "<string>",
"version": 123,
"scope": "<string>",
"probability": 0.5
}
],
"audio": {
"kind": "speech",
"voice": "Rachel",
"speed": 0.95
},
"audioSelection": {
"model": "<string>",
"questionVersion": "<string>",
"latencyMs": 1,
"inputTokens": 0,
"answers": [
{
"name": "<string>",
"choice": "<string>",
"confidence": 0.5,
"probabilities": [
{
"value": "<string>",
"probability": 0.5
}
]
}
]
}
},
"experience": {
"decisionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"surfaces": [
{
"id": "<string>",
"capability": "markdown",
"role": "primary",
"status": "ready",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sessionId": "<string>",
"actionReferences": [
"<string>"
],
"evidenceReferences": [
"<string>"
],
"assetJobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"generated": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"markdown": "<string>",
"failure": "<string>"
}
]
}
},
"runId": "<string>"
},
"searchToken": "<string>"
},
"agentCalls": [
{
"id": "<string>",
"agentId": "<string>",
"name": "<string>",
"operationId": "<string>",
"status": "ready",
"stepId": "<string>",
"threadId": "<string>",
"dependsOn": [
"<string>"
],
"searchId": "<string>",
"matchCount": 4503599627370495
}
],
"dataTransfers": [
{
"id": "<string>",
"stepId": "<string>",
"digest": "<string>",
"agentId": "<string>",
"operationId": "<string>",
"name": "<string>",
"reason": "private_context",
"status": "pending",
"sourceStepIds": [
"<string>"
]
}
]
}
],
"nextBefore": "<string>",
"eventCursor": "<string>"
},
"agents": [
{
"agentId": "<string>",
"name": "<string>",
"status": "working",
"operationThreadIds": [
"<string>"
],
"imageUrl": "<string>"
}
],
"conversationToken": "<string>"
}The Sessions API is in preview. Keep the returned
conversationToken private and send it as X-Assist-Token for guest continuations. Account-connected work and sensitive actions still require authorization.{
"clientMessageId": "research-followup-002",
"message": "Focus on papers published this year and explain the strongest three."
}
sessionId in the URL and the same authorized account or application credential. The server checks your session access before accepting the message.
Retry safely
Use a newclientMessageId for each new message. Retry an identical message with the same ID to recover its existing turn. Reusing the ID with changed content is a conflict. A successful response means the message was accepted; it does not mean the agent finished its work. Read Get Session or live events for progress.
Target an agent
To address a known agent explicitly, addtarget. An optional target.operationId identifies that agent’s operation definition.
{
"clientMessageId": "apollo-followup-003",
"message": "Find companies in healthcare with fewer than 100 employees.",
"target": {
"agentId": "your-agent-id"
}
}
Context and approval
Supply notes incontext.text, supported files in context.files, or explicitly selected session attachment IDs in attachmentIds. Attachment access is checked before any content is supplied to the runtime.
A message can provide information or steer the next step. It does not bypass execution permissions, account access, payment authorization, or a pending approval’s specific requirements. Use the approval action returned by the operation when one is required.
Changing a title or archiving a session belongs to Update Session; it does not require sending a message.Body
application/json
Response
Accepted state.
Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$Last modified on November 15, 2026
⌘I
Send Message
curl --request POST \
--url https://api.darwin.so/api/v3/sessions/{sessionId}/messages \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"clientMessageId": "followup-002",
"message": "Focus on papers published this year."
}
'import requests
url = "https://api.darwin.so/api/v3/sessions/{sessionId}/messages"
payload = {
"clientMessageId": "followup-002",
"message": "Focus on papers published this year."
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
clientMessageId: 'followup-002',
message: 'Focus on papers published this year.'
})
};
fetch('https://api.darwin.so/api/v3/sessions/{sessionId}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.darwin.so/api/v3/sessions/{sessionId}/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'clientMessageId' => 'followup-002',
'message' => 'Focus on papers published this year.'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.darwin.so/api/v3/sessions/{sessionId}/messages"
payload := strings.NewReader("{\n \"clientMessageId\": \"followup-002\",\n \"message\": \"Focus on papers published this year.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.darwin.so/api/v3/sessions/{sessionId}/messages")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"clientMessageId\": \"followup-002\",\n \"message\": \"Focus on papers published this year.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.darwin.so/api/v3/sessions/{sessionId}/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"clientMessageId\": \"followup-002\",\n \"message\": \"Focus on papers published this year.\"\n}"
response = http.request(request)
puts response.read_body{
"conversationId": "<string>",
"status": "planning",
"goal": "<string>",
"messages": [
{
"role": "user",
"text": "<string>",
"at": "2023-11-07T05:31:56Z"
}
],
"revisions": [
{
"revisionId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"searchId": "<string>",
"summary": "<string>",
"plan": {
"goal": "<string>",
"successCriteria": [
"<string>"
],
"steps": [
{
"stepId": "<string>",
"objective": "<string>",
"agentId": "<string>",
"operationId": "<string>",
"operationRevision": 123,
"alternativeAgentIds": [],
"dependsOn": [],
"evidenceRequired": "<string>",
"accessRequired": [],
"approvalRequired": true
}
],
"stoppingPoints": []
},
"agents": [
{
"agentId": "<string>",
"operationId": "<string>",
"operationRevision": 123,
"name": "<string>",
"description": "<string>",
"canStartThread": true,
"readiness": "ready",
"canAttemptThread": true
}
]
}
],
"latestRevisionId": "<string>",
"quote": {
"quoteId": "<string>",
"revisionId": "<string>",
"currency": "USD",
"totalBudgetMinor": 123,
"rateBps": 900,
"rateBasis": "<string>",
"maximumExecutionMinor": 4503599627370495,
"maximumFeeMinor": 4503599627370495,
"unallocatedMinor": 4503599627370495,
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"fundingStatus": "not_authorized",
"cancellationTerms": "<string>"
},
"funding": {
"fundingAuthorizationId": "<string>",
"quoteId": "<string>",
"revisionId": "<string>",
"totalBudgetMinor": 123,
"currency": "USD",
"status": "reserving",
"createdAt": "2023-11-07T05:31:56Z"
},
"run": {
"runId": "<string>",
"revisionId": "<string>",
"quoteId": "<string>",
"actingAiId": "<string>",
"status": "starting",
"startedAt": "2023-11-07T05:31:56Z",
"settlement": {
"currency": "USD",
"executionSpendMinor": 4503599627370495,
"outcomeFeeMinor": 4503599627370495,
"returnedMinor": 4503599627370495
},
"steps": [
{
"stepId": "<string>",
"agentId": "<string>",
"operationId": "<string>",
"operationRevision": 123,
"status": "pending",
"threadId": "<string>",
"errorCode": "<string>",
"actRequestId": "<string>",
"acceptedMessageId": "<string>",
"observation": {
"readStatus": "available",
"needsAttention": true,
"pendingRequestIds": [
"<string>"
],
"confirmedResultIds": [
"<string>"
]
}
}
]
},
"previousRuns": [],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"threadId": "<string>",
"delivery": {
"version": "composer.delivery.v1",
"audience": "human",
"status": "composed",
"markdown": "<string>",
"ui": {
"version": "darwinui-agent-v1",
"components": [
{
"id": "<string>",
"kind": "<string>",
"title": "<string>",
"data": "<unknown>",
"actions": [],
"text": "<string>"
}
],
"incomplete": []
},
"presentation": {
"version": "composer.v1",
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"mode": "live",
"request": {
"clientRequestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "<string>",
"message": "<string>",
"threadKind": "assist",
"mode": "live",
"host": {
"audience": "human",
"capabilities": [
"components",
"markdown",
"structured"
],
"viewport": "desktop",
"theme": "light"
},
"interaction": {
"type": "edit",
"fields": {},
"modality": "text"
},
"operationId": "<string>",
"authoring": {
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123
},
"audio": {
"kind": "speech",
"voice": "Rachel",
"speed": 0.95
},
"presentationOverride": "markdown",
"threadId": "<string>",
"turnId": "<string>",
"previousRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expectedRevision": 4503599627370495
},
"generated": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"facts": {
"agent": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"brand": {
"primary": "#0071E3",
"secondary": "#AF52DE",
"background": "#FFFFFF",
"foreground": "#171717",
"font": "system"
},
"loading": {
"kind": "darwin",
"asset": "<string>",
"poster": "<string>"
},
"appearance": {
"instructions": "<string>",
"componentContracts": [
{
"name": "<string>",
"description": "<string>"
}
],
"libraryName": "<string>",
"source": "darwin_ui",
"library": {
"schemaVersion": 1,
"name": "<string>",
"version": "<string>",
"importName": "<string>",
"entry": "<string>",
"files": {},
"components": [
{
"export": "<string>",
"description": "<string>",
"props": "<string>",
"example": "<string>",
"human": {
"description": "<string>",
"states": [
"input"
]
},
"agent": {
"description": "<string>",
"outputSchema": {},
"example": {},
"instructions": ""
}
}
]
}
}
},
"operations": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"available": true,
"reason": "<string>",
"fields": [
{
"name": "<string>",
"label": "<string>",
"type": "text",
"required": true,
"primary": true,
"encoding": "json",
"options": [
"<string>"
],
"multiple": true,
"description": "<string>",
"minimum": 123,
"maximum": 123,
"minLength": 4503599627370495,
"maxLength": 4503599627370495
}
],
"guidance": {
"openingQuestion": "",
"primaryAction": "",
"context": "",
"afterInput": "",
"success": "",
"recovery": ""
},
"experience": {
"version": 1,
"revision": 123,
"initialState": "<string>",
"instructions": "",
"states": [
{
"id": "<string>",
"description": "<string>",
"instructions": "",
"executionStatuses": [
"not_started"
],
"transitions": [
"<string>"
],
"variants": [
"<string>"
]
}
],
"variants": [
{
"id": "<string>",
"description": "<string>",
"instructions": "",
"modalities": [
"text",
"voice"
],
"presentation": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"bindings": [],
"runtimeComponents": [
{
"id": "<string>",
"sectionId": "<string>",
"instructions": "<string>",
"components": [],
"inputFields": []
}
],
"argumentBindings": [
{
"field": "<string>",
"target": "<string>"
}
]
}
]
},
"revision": 123,
"inputSchema": {}
}
],
"execution": {
"threadId": "<string>",
"turnId": "<string>",
"status": "not_started",
"evidence": [
{
"id": "<string>",
"text": "<string>",
"verification": "provider_reported"
}
]
},
"sessionContext": {
"goal": "<string>",
"brief": "<string>",
"messages": [
{
"role": "user",
"text": "<string>"
}
]
}
},
"markdown": "<string>",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy": {
"id": "<string>",
"version": 0,
"probability": 0.5,
"applied": [
{
"id": "<string>",
"version": 0,
"scope": "global",
"probability": 0.5
}
]
},
"diagnostics": {
"model": "<string>",
"generationMs": 123,
"inputTokens": 123,
"outputTokens": 123,
"repairs": 123,
"fallback": "<string>"
},
"createdAt": "<string>",
"selection": {
"version": "composer-selection.v1",
"catalogRevision": 123,
"catalogHash": "<string>",
"operationId": "<string>",
"stateId": "<string>",
"variantId": "<string>",
"model": "<string>",
"confidence": 0.5,
"fallback": "<string>",
"latencyMs": 1,
"inputTokens": 1
},
"decision": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model": "<string>",
"questionVersion": "<string>",
"catalogVersion": "<string>",
"mode": "shadow",
"eligible": [
"markdown"
],
"selected": "markdown",
"supporting": [],
"override": "markdown",
"confidence": 0.5,
"probabilities": [
{
"value": "markdown",
"probability": 0.5
}
],
"transition": "retain",
"fallback": "<string>",
"latencyMs": 1,
"inputTokens": 1,
"appliedPolicies": [
{
"id": "<string>",
"version": 123,
"scope": "<string>",
"probability": 0.5
}
],
"audio": {
"kind": "speech",
"voice": "Rachel",
"speed": 0.95
},
"audioSelection": {
"model": "<string>",
"questionVersion": "<string>",
"latencyMs": 1,
"inputTokens": 0,
"answers": [
{
"name": "<string>",
"choice": "<string>",
"confidence": 0.5,
"probabilities": [
{
"value": "<string>",
"probability": 0.5
}
]
}
]
}
},
"experience": {
"decisionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"surfaces": [
{
"id": "<string>",
"capability": "markdown",
"role": "primary",
"status": "ready",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sessionId": "<string>",
"actionReferences": [
"<string>"
],
"evidenceReferences": [
"<string>"
],
"assetJobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"generated": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"markdown": "<string>",
"failure": "<string>"
}
]
}
},
"runId": "<string>"
},
"sessionId": "<string>",
"threadBrief": "<string>",
"threadTitle": "<string>",
"conversation": {
"turns": [
{
"turnId": "<string>",
"clientMessageId": "<string>",
"message": "<string>",
"status": "queued",
"blocks": [
{
"type": "live_consent",
"text": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"presentation": "chat",
"composer": {
"version": "composer.v1",
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"mode": "live",
"request": {
"clientRequestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "<string>",
"message": "<string>",
"threadKind": "assist",
"mode": "live",
"host": {
"audience": "human",
"capabilities": [
"components",
"markdown",
"structured"
],
"viewport": "desktop",
"theme": "light"
},
"interaction": {
"type": "edit",
"fields": {},
"modality": "text"
},
"operationId": "<string>",
"authoring": {
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123
},
"audio": {
"kind": "speech",
"voice": "Rachel",
"speed": 0.95
},
"presentationOverride": "markdown",
"threadId": "<string>",
"turnId": "<string>",
"previousRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expectedRevision": 4503599627370495
},
"generated": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"facts": {
"agent": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"brand": {
"primary": "#0071E3",
"secondary": "#AF52DE",
"background": "#FFFFFF",
"foreground": "#171717",
"font": "system"
},
"loading": {
"kind": "darwin",
"asset": "<string>",
"poster": "<string>"
},
"appearance": {
"instructions": "<string>",
"componentContracts": [
{
"name": "<string>",
"description": "<string>"
}
],
"libraryName": "<string>",
"source": "darwin_ui",
"library": {
"schemaVersion": 1,
"name": "<string>",
"version": "<string>",
"importName": "<string>",
"entry": "<string>",
"files": {},
"components": [
{
"export": "<string>",
"description": "<string>",
"props": "<string>",
"example": "<string>",
"human": {
"description": "<string>",
"states": [
"input"
]
},
"agent": {
"description": "<string>",
"outputSchema": {},
"example": {},
"instructions": ""
}
}
]
}
}
},
"operations": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"available": true,
"reason": "<string>",
"fields": [
{
"name": "<string>",
"label": "<string>",
"type": "text",
"required": true,
"primary": true,
"encoding": "json",
"options": [
"<string>"
],
"multiple": true,
"description": "<string>",
"minimum": 123,
"maximum": 123,
"minLength": 4503599627370495,
"maxLength": 4503599627370495
}
],
"guidance": {
"openingQuestion": "",
"primaryAction": "",
"context": "",
"afterInput": "",
"success": "",
"recovery": ""
},
"experience": {
"version": 1,
"revision": 123,
"initialState": "<string>",
"instructions": "",
"states": [
{
"id": "<string>",
"description": "<string>",
"instructions": "",
"executionStatuses": [
"not_started"
],
"transitions": [
"<string>"
],
"variants": [
"<string>"
]
}
],
"variants": [
{
"id": "<string>",
"description": "<string>",
"instructions": "",
"modalities": [
"text",
"voice"
],
"presentation": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"bindings": [],
"runtimeComponents": [
{
"id": "<string>",
"sectionId": "<string>",
"instructions": "<string>",
"components": [],
"inputFields": []
}
],
"argumentBindings": [
{
"field": "<string>",
"target": "<string>"
}
]
}
]
},
"revision": 123,
"inputSchema": {}
}
],
"execution": {
"threadId": "<string>",
"turnId": "<string>",
"status": "not_started",
"evidence": [
{
"id": "<string>",
"text": "<string>",
"verification": "provider_reported"
}
]
},
"sessionContext": {
"goal": "<string>",
"brief": "<string>",
"messages": [
{
"role": "user",
"text": "<string>"
}
]
}
},
"markdown": "<string>",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy": {
"id": "<string>",
"version": 0,
"probability": 0.5,
"applied": [
{
"id": "<string>",
"version": 0,
"scope": "global",
"probability": 0.5
}
]
},
"diagnostics": {
"model": "<string>",
"generationMs": 123,
"inputTokens": 123,
"outputTokens": 123,
"repairs": 123,
"fallback": "<string>"
},
"createdAt": "<string>",
"selection": {
"version": "composer-selection.v1",
"catalogRevision": 123,
"catalogHash": "<string>",
"operationId": "<string>",
"stateId": "<string>",
"variantId": "<string>",
"model": "<string>",
"confidence": 0.5,
"fallback": "<string>",
"latencyMs": 1,
"inputTokens": 1
},
"decision": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model": "<string>",
"questionVersion": "<string>",
"catalogVersion": "<string>",
"mode": "shadow",
"eligible": [
"markdown"
],
"selected": "markdown",
"supporting": [],
"override": "markdown",
"confidence": 0.5,
"probabilities": [
{
"value": "markdown",
"probability": 0.5
}
],
"transition": "retain",
"fallback": "<string>",
"latencyMs": 1,
"inputTokens": 1,
"appliedPolicies": [
{
"id": "<string>",
"version": 123,
"scope": "<string>",
"probability": 0.5
}
],
"audio": {
"kind": "speech",
"voice": "Rachel",
"speed": 0.95
},
"audioSelection": {
"model": "<string>",
"questionVersion": "<string>",
"latencyMs": 1,
"inputTokens": 0,
"answers": [
{
"name": "<string>",
"choice": "<string>",
"confidence": 0.5,
"probabilities": [
{
"value": "<string>",
"probability": 0.5
}
]
}
]
}
},
"experience": {
"decisionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"surfaces": [
{
"id": "<string>",
"capability": "markdown",
"role": "primary",
"status": "ready",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sessionId": "<string>",
"actionReferences": [
"<string>"
],
"evidenceReferences": [
"<string>"
],
"assetJobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"generated": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"markdown": "<string>",
"failure": "<string>"
}
]
}
},
"target": {
"agentId": "<string>",
"operationId": "<string>"
},
"author": {
"type": "human",
"id": "<string>",
"name": "<string>",
"via": "darwin",
"viaAgent": {
"id": "<string>",
"name": "<string>",
"handle": "<string>"
}
},
"attachments": [
{
"name": "<string>",
"mimeType": "<string>"
}
],
"contextSummary": [
"<string>"
],
"searchResult": {
"searchId": "<string>",
"responseId": "<string>",
"previousResponseId": "<string>",
"contractVersion": "search-v3.0",
"status": "completed",
"response": {
"agents": [
{
"agentId": "<string>",
"agentSlug": "<string>",
"operationId": "<string>",
"operationRevision": 123,
"providerFamilyRef": "<string>",
"rank": 123,
"selected": true,
"name": "<string>",
"description": "<string>",
"requiredSetup": {
"kind": "credential",
"suppliedBy": "user",
"description": "<string>"
},
"executionRequirements": {
"contractVersion": "1.0.0",
"providerAuthentication": {
"state": "REQUIRED",
"mechanisms": [
"BEARER"
],
"placements": [
"HEADER"
],
"scopes": [
"<string>"
],
"evidence": "PROVIDER_DECLARED"
},
"operationCredentials": {
"state": "REQUIRED",
"sensitiveInputNames": [
"<string>"
]
},
"runtime": {
"kind": "REMOTE_MCP",
"package": {
"ecosystem": "<string>",
"identifier": "<string>",
"version": "<string>",
"runtimeProfile": "<string>"
},
"requiredEnvironmentNames": [
"<string>"
]
},
"payment": {
"state": "REQUIRED",
"termsDigest": "<string>"
},
"browser": {
"state": "REQUIRED",
"sessionKind": "ANONYMOUS"
},
"providerContract": {
"route": "RESOLVED",
"inputSchema": "CONCRETE",
"outputSchema": "CONCRETE"
},
"providerBlockers": [
{
"code": "PROVIDER_ROUTE_UNSUPPORTED",
"owner": "PROVIDER"
}
],
"derivation": {
"normalizerVersion": "execution-requirements-v1",
"sourceRevision": "<string>",
"sourceReceiptDigest": "<string>",
"completeness": "COMPLETE",
"derivationKey": "<string>"
}
},
"executionGuidance": {
"credentialSummaryCode": "<string>",
"credentialSummary": "<string>",
"setupSummaryCode": "<string>",
"setupSummary": "<string>",
"recordBlockers": [
{
"code": "PROVIDER_ROUTE_UNSUPPORTED",
"owner": "PROVIDER"
}
],
"primaryBlockerCode": "PROVIDER_ROUTE_UNSUPPORTED",
"rendererVersion": "execution-guidance-v1"
},
"readiness": "ready",
"canStartThread": true,
"reasons": [
"<string>"
],
"uncertainties": [
"<string>"
],
"providerCheck": "not_attempted",
"connectionMethods": [],
"connectionPrompt": "<string>",
"imageUrl": "<string>",
"avatarUrl": "<string>",
"canAttemptThread": true,
"inquiry": {
"status": "contacting",
"question": "<string>",
"replies": [
{
"messageId": "<string>",
"text": "<string>",
"at": "2023-11-07T05:31:56Z"
}
],
"fit": "matches",
"expiresAt": "2023-11-07T05:31:56Z",
"threadId": "<string>",
"description": "<string>",
"reason": "<string>"
}
}
],
"relatedSearches": [],
"question": "<string>",
"noMatchReason": "<string>",
"assessment": {
"outcome": "strong",
"explanation": "<string>"
},
"plan": {
"steps": [
{
"stepId": "<string>",
"agentId": "<string>",
"operationId": "<string>",
"objective": "<string>",
"dependsOn": [
"<string>"
],
"alternatives": [
{
"agentId": "<string>",
"operationId": "<string>"
}
]
}
]
},
"overview": "<string>"
},
"delivery": {
"version": "composer.delivery.v1",
"audience": "human",
"status": "composed",
"markdown": "<string>",
"ui": {
"version": "darwinui-agent-v1",
"components": [
{
"id": "<string>",
"kind": "<string>",
"title": "<string>",
"data": "<unknown>",
"actions": [],
"text": "<string>"
}
],
"incomplete": []
},
"presentation": {
"version": "composer.v1",
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"mode": "live",
"request": {
"clientRequestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "<string>",
"message": "<string>",
"threadKind": "assist",
"mode": "live",
"host": {
"audience": "human",
"capabilities": [
"components",
"markdown",
"structured"
],
"viewport": "desktop",
"theme": "light"
},
"interaction": {
"type": "edit",
"fields": {},
"modality": "text"
},
"operationId": "<string>",
"authoring": {
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123
},
"audio": {
"kind": "speech",
"voice": "Rachel",
"speed": 0.95
},
"presentationOverride": "markdown",
"threadId": "<string>",
"turnId": "<string>",
"previousRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expectedRevision": 4503599627370495
},
"generated": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"facts": {
"agent": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"brand": {
"primary": "#0071E3",
"secondary": "#AF52DE",
"background": "#FFFFFF",
"foreground": "#171717",
"font": "system"
},
"loading": {
"kind": "darwin",
"asset": "<string>",
"poster": "<string>"
},
"appearance": {
"instructions": "<string>",
"componentContracts": [
{
"name": "<string>",
"description": "<string>"
}
],
"libraryName": "<string>",
"source": "darwin_ui",
"library": {
"schemaVersion": 1,
"name": "<string>",
"version": "<string>",
"importName": "<string>",
"entry": "<string>",
"files": {},
"components": [
{
"export": "<string>",
"description": "<string>",
"props": "<string>",
"example": "<string>",
"human": {
"description": "<string>",
"states": [
"input"
]
},
"agent": {
"description": "<string>",
"outputSchema": {},
"example": {},
"instructions": ""
}
}
]
}
}
},
"operations": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"available": true,
"reason": "<string>",
"fields": [
{
"name": "<string>",
"label": "<string>",
"type": "text",
"required": true,
"primary": true,
"encoding": "json",
"options": [
"<string>"
],
"multiple": true,
"description": "<string>",
"minimum": 123,
"maximum": 123,
"minLength": 4503599627370495,
"maxLength": 4503599627370495
}
],
"guidance": {
"openingQuestion": "",
"primaryAction": "",
"context": "",
"afterInput": "",
"success": "",
"recovery": ""
},
"experience": {
"version": 1,
"revision": 123,
"initialState": "<string>",
"instructions": "",
"states": [
{
"id": "<string>",
"description": "<string>",
"instructions": "",
"executionStatuses": [
"not_started"
],
"transitions": [
"<string>"
],
"variants": [
"<string>"
]
}
],
"variants": [
{
"id": "<string>",
"description": "<string>",
"instructions": "",
"modalities": [
"text",
"voice"
],
"presentation": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"bindings": [],
"runtimeComponents": [
{
"id": "<string>",
"sectionId": "<string>",
"instructions": "<string>",
"components": [],
"inputFields": []
}
],
"argumentBindings": [
{
"field": "<string>",
"target": "<string>"
}
]
}
]
},
"revision": 123,
"inputSchema": {}
}
],
"execution": {
"threadId": "<string>",
"turnId": "<string>",
"status": "not_started",
"evidence": [
{
"id": "<string>",
"text": "<string>",
"verification": "provider_reported"
}
]
},
"sessionContext": {
"goal": "<string>",
"brief": "<string>",
"messages": [
{
"role": "user",
"text": "<string>"
}
]
}
},
"markdown": "<string>",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy": {
"id": "<string>",
"version": 0,
"probability": 0.5,
"applied": [
{
"id": "<string>",
"version": 0,
"scope": "global",
"probability": 0.5
}
]
},
"diagnostics": {
"model": "<string>",
"generationMs": 123,
"inputTokens": 123,
"outputTokens": 123,
"repairs": 123,
"fallback": "<string>"
},
"createdAt": "<string>",
"selection": {
"version": "composer-selection.v1",
"catalogRevision": 123,
"catalogHash": "<string>",
"operationId": "<string>",
"stateId": "<string>",
"variantId": "<string>",
"model": "<string>",
"confidence": 0.5,
"fallback": "<string>",
"latencyMs": 1,
"inputTokens": 1
},
"decision": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model": "<string>",
"questionVersion": "<string>",
"catalogVersion": "<string>",
"mode": "shadow",
"eligible": [
"markdown"
],
"selected": "markdown",
"supporting": [],
"override": "markdown",
"confidence": 0.5,
"probabilities": [
{
"value": "markdown",
"probability": 0.5
}
],
"transition": "retain",
"fallback": "<string>",
"latencyMs": 1,
"inputTokens": 1,
"appliedPolicies": [
{
"id": "<string>",
"version": 123,
"scope": "<string>",
"probability": 0.5
}
],
"audio": {
"kind": "speech",
"voice": "Rachel",
"speed": 0.95
},
"audioSelection": {
"model": "<string>",
"questionVersion": "<string>",
"latencyMs": 1,
"inputTokens": 0,
"answers": [
{
"name": "<string>",
"choice": "<string>",
"confidence": 0.5,
"probabilities": [
{
"value": "<string>",
"probability": 0.5
}
]
}
]
}
},
"experience": {
"decisionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"surfaces": [
{
"id": "<string>",
"capability": "markdown",
"role": "primary",
"status": "ready",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sessionId": "<string>",
"actionReferences": [
"<string>"
],
"evidenceReferences": [
"<string>"
],
"assetJobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"generated": {
"title": "<string>",
"summary": "<string>",
"layout": "stack",
"representation": "components",
"sections": [
{
"id": "<string>",
"kind": "message",
"title": "<string>",
"text": "<string>",
"items": [
"<string>"
],
"operationId": "<string>"
}
],
"next": [
{
"label": "<string>",
"intent": "<string>",
"confidence": 0.5
}
],
"reactSource": "<string>",
"mediaPrompt": "<string>",
"artifact": {
"kind": "research",
"question": "<string>",
"focus": [
"<string>"
],
"sourceTypes": [
"<string>"
]
},
"journey": {
"stage": "input",
"instruction": "<string>",
"action": {
"kind": "continue",
"label": "<string>",
"intent": "<string>",
"operationId": "<string>",
"argumentsJson": "<string>"
}
},
"design": {
"character": "editorial",
"density": "relaxed"
},
"runtimeRegions": [
{
"id": "<string>",
"sectionId": "<string>",
"libraryDigest": "<string>",
"status": "generated",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tree": {
"nodes": [
"<unknown>"
]
},
"inputFields": [
"<string>"
],
"failure": "<string>",
"model": "<string>",
"inputTokens": 4503599627370495,
"outputTokens": 4503599627370495
}
]
},
"markdown": "<string>",
"failure": "<string>"
}
]
}
},
"runId": "<string>"
},
"searchToken": "<string>"
},
"agentCalls": [
{
"id": "<string>",
"agentId": "<string>",
"name": "<string>",
"operationId": "<string>",
"status": "ready",
"stepId": "<string>",
"threadId": "<string>",
"dependsOn": [
"<string>"
],
"searchId": "<string>",
"matchCount": 4503599627370495
}
],
"dataTransfers": [
{
"id": "<string>",
"stepId": "<string>",
"digest": "<string>",
"agentId": "<string>",
"operationId": "<string>",
"name": "<string>",
"reason": "private_context",
"status": "pending",
"sourceStepIds": [
"<string>"
]
}
]
}
],
"nextBefore": "<string>",
"eventCursor": "<string>"
},
"agents": [
{
"agentId": "<string>",
"name": "<string>",
"status": "working",
"operationThreadIds": [
"<string>"
],
"imageUrl": "<string>"
}
],
"conversationToken": "<string>"
}