LocalAgentResponse
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/responses |
create |
The provider's Responses event stream, unchanged. Usage from its terminal event is recorded for the organization |
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.LocalAgentResponse(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:LocalAgentResponse():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->LocalAgentResponse()->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.LocalAgentResponse().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.LocalAgentResponse.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.LocalAgentResponse().create({ organization_id: "example", input: [], model: "example", store: true, stream: true })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
input |
array |
Yes | Input |
model |
string |
Yes | Model |
service_tier |
one,string,null |
No | Service Tier |
store |
boolean |
Yes | Store |
stream |
boolean |
Yes | Stream |
tools |
array |
No | Tools |
create
POST /api/v1/organizations/{organization_id}/local_agent/responses
Operation ID: api_v1_organization_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 | |
model |
enum: gpt-6-luna, gpt-5.6-luna |
Yes | |
service_tier |
enum: auto, default, flex, priority |
No | |
store |
enum: false |
Yes | |
stream |
enum: true |
Yes | |
tools |
array of object |
No |
Responses
200: The provider's Responses event stream, unchanged. Usage from its terminal event is recorded for the organization
application/json
The response is object.
text/event-stream
The response is string.
401: Authentication required
403: Forbidden
404: Organization not accessible
422: Request not admitted
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
object |
Yes | |
error.code |
string |
No | |
error.message |
string |
No |