API

LocalAgentDecision

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}/local_agent/decisions create The provider's native Decisions answer

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.LocalAgentDecision(nil).Create(map[string]any{"organization_id": "example", "request": map[string]any{}}, 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:LocalAgentDecision():create({ organization_id = "example", request = {} })

PHP

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

$created = $client->LocalAgentDecision()->create(["organization_id" => "example", "request" => []]);

Python

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

created = client.LocalAgentDecision().create({ "organization_id": "example", "request": {} })

Ruby

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

created = client.LocalAgentDecision.create({ "organization_id" => "example", "request" => {} })

TypeScript

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

const created = await client.LocalAgentDecision().create({ organization_id: "example", request: {} })

Fields

Field Type Required Description
request object Yes A native OpenAI Decisions request for gpt-6-luna, at most 1600 KiB, with inline images only

create

POST /api/v1/organizations/{organization_id}/local_agent/decisions

Operation ID: api_v1_organization_local_agent_decisions.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Request body

application/json

Property Type Required Description
request object Yes A native OpenAI Decisions request for gpt-6-luna, at most 1600 KiB, with inline images only

Responses

200: The provider's native Decisions answer

application/json

The response is object.

401: Authentication required
403: Forbidden
404: Organization not accessible, or code decisions_disabled when the organization has no Decisions
422: Request not admitted
429: Per-user rate limit exceeded
502: Bad gateway
503: Decisions provider unavailable