Skip to content

Commit 2f1540d

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#931)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 5ba4d89 commit 2f1540d

1 file changed

Lines changed: 90 additions & 14 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 90 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8143,19 +8143,49 @@ components:
81438143
sequence_number: 6
81448144
type: 'response.custom_tool_call_input.done'
81458145
CustomToolCallItem:
8146-
allOf:
8147-
- $ref: '#/components/schemas/OpenAIResponseCustomToolCall'
8148-
- properties:
8149-
status:
8150-
$ref: '#/components/schemas/ToolCallStatus'
8151-
type: 'object'
81528146
description: 'A call to a custom (freeform-grammar) tool created by the model — distinct from `function_call`. Used for tools like Codex CLI''s `apply_patch` whose payload is opaque text rather than JSON arguments.'
81538147
example:
81548148
call_id: 'call-abc123'
81558149
id: 'ctc-abc123'
81568150
input: "*** Begin Patch\n*** End Patch"
81578151
name: 'apply_patch'
81588152
type: 'custom_tool_call'
8153+
properties:
8154+
async:
8155+
description: 'True when the model called a tool declared with `async: true` and may continue its turn before the output is returned. Return the result in a later request as a `function_call_output` with this `call_id`.'
8156+
example: true
8157+
type:
8158+
- 'boolean'
8159+
- 'null'
8160+
call_id:
8161+
type: 'string'
8162+
id:
8163+
type:
8164+
- 'string'
8165+
- 'null'
8166+
input:
8167+
type: 'string'
8168+
name:
8169+
type: 'string'
8170+
namespace:
8171+
description: 'Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server)'
8172+
type:
8173+
- 'string'
8174+
- 'null'
8175+
status:
8176+
anyOf:
8177+
- $ref: '#/components/schemas/ToolCallStatus'
8178+
- type: 'null'
8179+
type:
8180+
enum:
8181+
- 'custom_tool_call'
8182+
type: 'string'
8183+
required:
8184+
- 'type'
8185+
- 'call_id'
8186+
- 'name'
8187+
- 'input'
8188+
type: 'object'
81598189
CustomToolCallOutputItem:
81608190
allOf:
81618191
- $ref: '#/components/schemas/OpenAIResponseCustomToolCallOutput'
@@ -9294,12 +9324,6 @@ components:
92949324
sequence_number: 6
92959325
type: 'response.function_call_arguments.done'
92969326
FunctionCallItem:
9297-
allOf:
9298-
- $ref: '#/components/schemas/OpenAIResponseFunctionToolCall'
9299-
- properties: {}
9300-
required:
9301-
- 'id'
9302-
type: 'object'
93039327
description: 'A function call initiated by the model'
93049328
example:
93059329
arguments: '{"location":"San Francisco"}'
@@ -9308,6 +9332,60 @@ components:
93089332
name: 'get_weather'
93099333
status: 'completed'
93109334
type: 'function_call'
9335+
properties:
9336+
arguments:
9337+
type: 'string'
9338+
async:
9339+
description: 'True when the model called a tool declared with `async: true` and may continue its turn before the output is returned. Return the result in a later request as a `function_call_output` with this `call_id`.'
9340+
example: true
9341+
type:
9342+
- 'boolean'
9343+
- 'null'
9344+
call_id:
9345+
type: 'string'
9346+
id:
9347+
type:
9348+
- 'string'
9349+
- 'null'
9350+
name:
9351+
type: 'string'
9352+
namespace:
9353+
description: 'Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server)'
9354+
type:
9355+
- 'string'
9356+
- 'null'
9357+
status:
9358+
anyOf:
9359+
- $ref: '#/components/schemas/ToolCallStatus'
9360+
- type: 'null'
9361+
subagent_id:
9362+
description: 'EXPERIMENTAL — subject to change without notice. String id that matches the `call_id` of the `openrouter:subagent` server tool call that spawned the subagent. Present on every `function_call` item the subagent projects; absent on ordinary function calls.'
9363+
type:
9364+
- 'string'
9365+
- 'null'
9366+
subagent_items:
9367+
description: 'EXPERIMENTAL — subject to change without notice. The subagent''s output items produced on this turn. Treat this as an opaque object; you must replay it in the request so that the subagent can continue execution of the tool with the same context. If a subagent created multiple parallel tool calls, only the first tool call will have this field. The other tool calls will only have `subagent_id`. Present only if the tool call originates from a subagent spawned by the `openrouter:subagent` server tool.'
9368+
items:
9369+
additionalProperties: {}
9370+
properties:
9371+
type:
9372+
type: 'string'
9373+
required:
9374+
- 'type'
9375+
type: 'object'
9376+
type:
9377+
- 'array'
9378+
- 'null'
9379+
type:
9380+
enum:
9381+
- 'function_call'
9382+
type: 'string'
9383+
required:
9384+
- 'type'
9385+
- 'call_id'
9386+
- 'name'
9387+
- 'arguments'
9388+
type: 'object'
93119389
FunctionCallOutputItem:
93129390
allOf:
93139391
- $ref: '#/components/schemas/OpenAIResponseFunctionToolCallOutput'
@@ -12237,8 +12315,6 @@ components:
1223712315
- text: 'Analyzed the problem and found the optimal solution.'
1223812316
type: 'summary_text'
1223912317
type: 'reasoning'
12240-
- $ref: '#/components/schemas/OutputFunctionCallItem'
12241-
- $ref: '#/components/schemas/OutputCustomToolCallItem'
1224212318
- $ref: '#/components/schemas/OutputWebSearchCallItem'
1224312319
- $ref: '#/components/schemas/OutputFileSearchCallItem'
1224412320
- $ref: '#/components/schemas/OutputImageGenerationCallItem'

0 commit comments

Comments
 (0)