mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
chore: update OpenAPI spec from monorepo (#240)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
a7bb403311
commit
bb74b7fabc
@@ -1970,6 +1970,115 @@ components:
|
||||
required:
|
||||
- type
|
||||
type: object
|
||||
ApplyPatchCallItem:
|
||||
description: A file create/update/delete via diff patch
|
||||
example:
|
||||
call_id: call-abc123
|
||||
operation:
|
||||
diff: |
|
||||
--- a
|
||||
+++ b
|
||||
path: src/main.ts
|
||||
type: update_file
|
||||
status: completed
|
||||
type: apply_patch_call
|
||||
properties:
|
||||
call_id:
|
||||
type: string
|
||||
id:
|
||||
nullable: true
|
||||
type: string
|
||||
operation:
|
||||
oneOf:
|
||||
- properties:
|
||||
diff:
|
||||
type: string
|
||||
path:
|
||||
type: string
|
||||
type:
|
||||
enum:
|
||||
- create_file
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- path
|
||||
- diff
|
||||
type: object
|
||||
- properties:
|
||||
path:
|
||||
type: string
|
||||
type:
|
||||
enum:
|
||||
- delete_file
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- path
|
||||
type: object
|
||||
- properties:
|
||||
diff:
|
||||
type: string
|
||||
path:
|
||||
type: string
|
||||
type:
|
||||
enum:
|
||||
- update_file
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- path
|
||||
- diff
|
||||
type: object
|
||||
status:
|
||||
anyOf:
|
||||
- enum:
|
||||
- in_progress
|
||||
type: string
|
||||
- enum:
|
||||
- completed
|
||||
type: string
|
||||
type:
|
||||
enum:
|
||||
- apply_patch_call
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- call_id
|
||||
- operation
|
||||
- status
|
||||
type: object
|
||||
ApplyPatchCallOutputItem:
|
||||
description: Output from an apply patch operation
|
||||
example:
|
||||
call_id: call-abc123
|
||||
status: completed
|
||||
type: apply_patch_call_output
|
||||
properties:
|
||||
call_id:
|
||||
type: string
|
||||
id:
|
||||
nullable: true
|
||||
type: string
|
||||
output:
|
||||
nullable: true
|
||||
type: string
|
||||
status:
|
||||
anyOf:
|
||||
- enum:
|
||||
- completed
|
||||
type: string
|
||||
- enum:
|
||||
- failed
|
||||
type: string
|
||||
type:
|
||||
enum:
|
||||
- apply_patch_call_output
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- call_id
|
||||
- status
|
||||
type: object
|
||||
ApplyPatchServerTool:
|
||||
description: Apply patch tool configuration
|
||||
example:
|
||||
@@ -4788,6 +4897,25 @@ components:
|
||||
required:
|
||||
- type
|
||||
type: object
|
||||
CompactionItem:
|
||||
description: A context compaction marker with encrypted summary
|
||||
example:
|
||||
encrypted_content: enc_abc123...
|
||||
type: compaction
|
||||
properties:
|
||||
encrypted_content:
|
||||
type: string
|
||||
id:
|
||||
nullable: true
|
||||
type: string
|
||||
type:
|
||||
enum:
|
||||
- compaction
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- encrypted_content
|
||||
type: object
|
||||
CompletedEvent:
|
||||
description: Event emitted when a response has completed successfully
|
||||
example:
|
||||
@@ -7369,8 +7497,20 @@ components:
|
||||
- $ref: '#/components/schemas/OutputMemoryServerToolItem'
|
||||
- $ref: '#/components/schemas/OutputMcpServerToolItem'
|
||||
- $ref: '#/components/schemas/OutputSearchModelsServerToolItem'
|
||||
- $ref: '#/components/schemas/LocalShellCallItem'
|
||||
- $ref: '#/components/schemas/LocalShellCallOutputItem'
|
||||
- $ref: '#/components/schemas/ShellCallItem'
|
||||
- $ref: '#/components/schemas/ShellCallOutputItem'
|
||||
- $ref: '#/components/schemas/ApplyPatchCallItem'
|
||||
- $ref: '#/components/schemas/ApplyPatchCallOutputItem'
|
||||
- $ref: '#/components/schemas/McpListToolsItem'
|
||||
- $ref: '#/components/schemas/McpApprovalRequestItem'
|
||||
- $ref: '#/components/schemas/McpApprovalResponseItem'
|
||||
- $ref: '#/components/schemas/McpCallItem'
|
||||
- $ref: '#/components/schemas/CustomToolCallItem'
|
||||
- $ref: '#/components/schemas/CustomToolCallOutputItem'
|
||||
- $ref: '#/components/schemas/CompactionItem'
|
||||
- $ref: '#/components/schemas/ItemReferenceItem'
|
||||
type: array
|
||||
description: Input for a response request - can be a string or array of items
|
||||
example:
|
||||
@@ -7477,6 +7617,22 @@ components:
|
||||
- code
|
||||
- message
|
||||
type: object
|
||||
ItemReferenceItem:
|
||||
description: A reference to a previous response item by ID
|
||||
example:
|
||||
id: msg-abc123
|
||||
type: item_reference
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
type:
|
||||
enum:
|
||||
- item_reference
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- id
|
||||
type: object
|
||||
KeyAssignment:
|
||||
example:
|
||||
assigned_by: user_abc123
|
||||
@@ -7815,6 +7971,235 @@ components:
|
||||
- data
|
||||
- total_count
|
||||
type: object
|
||||
LocalShellCallItem:
|
||||
description: A local shell command execution call
|
||||
example:
|
||||
action:
|
||||
command:
|
||||
- ls
|
||||
- '-la'
|
||||
env:
|
||||
PATH: /usr/bin
|
||||
timeout_ms: 5000
|
||||
type: exec
|
||||
call_id: call-abc123
|
||||
id: shell-abc123
|
||||
status: completed
|
||||
type: local_shell_call
|
||||
properties:
|
||||
action:
|
||||
properties:
|
||||
command:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
env:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
timeout_ms:
|
||||
nullable: true
|
||||
type: integer
|
||||
type:
|
||||
enum:
|
||||
- exec
|
||||
type: string
|
||||
user:
|
||||
nullable: true
|
||||
type: string
|
||||
working_directory:
|
||||
nullable: true
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- command
|
||||
- env
|
||||
type: object
|
||||
call_id:
|
||||
type: string
|
||||
id:
|
||||
type: string
|
||||
status:
|
||||
$ref: '#/components/schemas/ToolCallStatus'
|
||||
type:
|
||||
enum:
|
||||
- local_shell_call
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- id
|
||||
- call_id
|
||||
- action
|
||||
- status
|
||||
type: object
|
||||
LocalShellCallOutputItem:
|
||||
description: Output from a local shell command execution
|
||||
example:
|
||||
id: output-abc123
|
||||
output: |-
|
||||
total 24
|
||||
drwxr-xr-x 5 user staff 160 Jan 1 12:00 .
|
||||
status: completed
|
||||
type: local_shell_call_output
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
output:
|
||||
type: string
|
||||
status:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/ToolCallStatus'
|
||||
- nullable: true
|
||||
type:
|
||||
enum:
|
||||
- local_shell_call_output
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- id
|
||||
- output
|
||||
type: object
|
||||
McpApprovalRequestItem:
|
||||
description: Request for approval to execute an MCP tool
|
||||
example:
|
||||
arguments: '{"id":"123"}'
|
||||
id: approval-abc123
|
||||
name: delete_record
|
||||
server_label: database-server
|
||||
type: mcp_approval_request
|
||||
properties:
|
||||
arguments:
|
||||
type: string
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
server_label:
|
||||
type: string
|
||||
type:
|
||||
enum:
|
||||
- mcp_approval_request
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- id
|
||||
- name
|
||||
- arguments
|
||||
- server_label
|
||||
type: object
|
||||
McpApprovalResponseItem:
|
||||
description: User response to an MCP tool approval request
|
||||
example:
|
||||
approval_request_id: approval-abc123
|
||||
approve: true
|
||||
reason: Approved for execution
|
||||
type: mcp_approval_response
|
||||
properties:
|
||||
approval_request_id:
|
||||
type: string
|
||||
approve:
|
||||
type: boolean
|
||||
id:
|
||||
nullable: true
|
||||
type: string
|
||||
reason:
|
||||
nullable: true
|
||||
type: string
|
||||
type:
|
||||
enum:
|
||||
- mcp_approval_response
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- approval_request_id
|
||||
- approve
|
||||
type: object
|
||||
McpCallItem:
|
||||
description: An MCP tool call with its output or error
|
||||
example:
|
||||
arguments: '{"query":"SELECT * FROM users"}'
|
||||
id: mcp-call-abc123
|
||||
name: query_database
|
||||
output: '[{"id":1,"name":"Alice"}]'
|
||||
server_label: database-server
|
||||
type: mcp_call
|
||||
properties:
|
||||
arguments:
|
||||
type: string
|
||||
error:
|
||||
nullable: true
|
||||
type: string
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
output:
|
||||
nullable: true
|
||||
type: string
|
||||
server_label:
|
||||
type: string
|
||||
type:
|
||||
enum:
|
||||
- mcp_call
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- id
|
||||
- name
|
||||
- arguments
|
||||
- server_label
|
||||
type: object
|
||||
McpListToolsItem:
|
||||
description: List of available MCP tools from a server
|
||||
example:
|
||||
id: mcp-list-abc123
|
||||
server_label: database-server
|
||||
tools:
|
||||
- description: Execute a database query
|
||||
input_schema:
|
||||
properties:
|
||||
query:
|
||||
type: string
|
||||
type: object
|
||||
name: query_database
|
||||
type: mcp_list_tools
|
||||
properties:
|
||||
error:
|
||||
nullable: true
|
||||
type: string
|
||||
id:
|
||||
type: string
|
||||
server_label:
|
||||
type: string
|
||||
tools:
|
||||
items:
|
||||
properties:
|
||||
annotations:
|
||||
nullable: true
|
||||
description:
|
||||
nullable: true
|
||||
type: string
|
||||
input_schema:
|
||||
additionalProperties:
|
||||
nullable: true
|
||||
type: object
|
||||
name:
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
- input_schema
|
||||
type: object
|
||||
type: array
|
||||
type:
|
||||
enum:
|
||||
- mcp_list_tools
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- id
|
||||
- server_label
|
||||
- tools
|
||||
type: object
|
||||
McpServerTool:
|
||||
description: MCP (Model Context Protocol) tool configuration
|
||||
example:
|
||||
@@ -13890,6 +14275,102 @@ components:
|
||||
- code
|
||||
- message
|
||||
type: object
|
||||
ShellCallItem:
|
||||
description: A shell command execution call (newer variant)
|
||||
example:
|
||||
action:
|
||||
commands:
|
||||
- ls
|
||||
- '-la'
|
||||
max_output_length: 10000
|
||||
call_id: call-abc123
|
||||
status: completed
|
||||
type: shell_call
|
||||
properties:
|
||||
action:
|
||||
properties:
|
||||
commands:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
max_output_length:
|
||||
nullable: true
|
||||
type: integer
|
||||
timeout_ms:
|
||||
nullable: true
|
||||
type: integer
|
||||
required:
|
||||
- commands
|
||||
type: object
|
||||
call_id:
|
||||
type: string
|
||||
environment:
|
||||
nullable: true
|
||||
id:
|
||||
nullable: true
|
||||
type: string
|
||||
status:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/ToolCallStatus'
|
||||
- nullable: true
|
||||
type:
|
||||
enum:
|
||||
- shell_call
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- call_id
|
||||
- action
|
||||
type: object
|
||||
ShellCallOutputItem:
|
||||
description: Output from a shell command execution (newer variant)
|
||||
example:
|
||||
call_id: call-abc123
|
||||
output:
|
||||
- content: |
|
||||
total 0
|
||||
type: stdout
|
||||
status: completed
|
||||
type: shell_call_output
|
||||
properties:
|
||||
call_id:
|
||||
type: string
|
||||
id:
|
||||
nullable: true
|
||||
type: string
|
||||
max_output_length:
|
||||
nullable: true
|
||||
type: integer
|
||||
output:
|
||||
items:
|
||||
additionalProperties:
|
||||
nullable: true
|
||||
properties:
|
||||
content:
|
||||
nullable: true
|
||||
type: string
|
||||
exit_code:
|
||||
nullable: true
|
||||
type: integer
|
||||
type:
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
type: object
|
||||
type: array
|
||||
status:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/ToolCallStatus'
|
||||
- nullable: true
|
||||
type:
|
||||
enum:
|
||||
- shell_call_output
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- call_id
|
||||
- output
|
||||
type: object
|
||||
ShellServerTool:
|
||||
description: Shell tool configuration
|
||||
example:
|
||||
|
||||
Reference in New Issue
Block a user