API

DesktopLocalAgentResponse

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/organizations/{organization_id}/desktop_local_agent/responses create Provider events and usage streamed to the Local gateway

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

created, err := client.DesktopLocalAgentResponse(nil).Create(map[string]any{"organization_id": "example", "input": []any{}, "model": "example", "store": true, "stream": true}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local created, err = client:DesktopLocalAgentResponse():create({ organization_id = "example", input = {}, model = "example", store = true, stream = true })

PHP

Construct client as shown in the PHP setup, then call the operations:

$created = $client->DesktopLocalAgentResponse()->create(["organization_id" => "example", "input" => [], "model" => "example", "store" => true, "stream" => true]);

Python

Construct client as shown in the Python setup, then call the operations:

created = client.DesktopLocalAgentResponse().create({ "organization_id": "example", "input": [], "model": "example", "store": True, "stream": True })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

created = client.DesktopLocalAgentResponse.create({ "organization_id" => "example", "input" => [], "model" => "example", "store" => true, "stream" => true })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const created = await client.DesktopLocalAgentResponse().create({ organization_id: "example", input: [], model: "example", store: true, stream: true })

Fields

Field Type Required Description
input array Yes Input
max_output_tokens integer No Max Output Tokens
model string Yes Model
store boolean Yes Store
stream boolean Yes Stream

create

POST /api/v1/organizations/{organization_id}/desktop_local_agent/responses

Operation ID: api_v1_organization_desktop_local_agent_responses.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Request body

application/json

Property Type Required Description
input array of object Yes
max_output_tokens integer No
model enum: gpt-6-luna, gpt-6.1-terra Yes
store enum: false Yes
stream enum: true Yes

Responses

200: Provider events and usage streamed to the Local gateway

application/json

The response is object.

text/event-stream

The response is string.

401: Authentication required
402: Insufficient token credit
403: Forbidden
404: Desktop Local preview or organization is unavailable to the account
422: Request not admitted
429: Rate limit exceeded
502: Bad gateway
503: Model access unavailable