Skip to content

Commit d7694b3

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

1 file changed

Lines changed: 159 additions & 1 deletion

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 159 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2717,6 +2717,153 @@ components:
27172717
- 'content'
27182718
- 'tool_use_id'
27192719
type: 'object'
2720+
AnthropicToolUnion:
2721+
description: 'An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).'
2722+
example:
2723+
description: 'Get the current weather for a city.'
2724+
input_schema:
2725+
properties:
2726+
city:
2727+
type: 'string'
2728+
required:
2729+
- 'city'
2730+
type: 'object'
2731+
name: 'get_weather'
2732+
oneOf:
2733+
- properties:
2734+
cache_control:
2735+
$ref: '#/components/schemas/AnthropicCacheControlDirective'
2736+
defer_loading:
2737+
type: 'boolean'
2738+
description:
2739+
type: 'string'
2740+
input_schema:
2741+
additionalProperties: {}
2742+
properties:
2743+
properties: {}
2744+
required:
2745+
items:
2746+
type: 'string'
2747+
type:
2748+
- 'array'
2749+
- 'null'
2750+
type:
2751+
enum:
2752+
- 'object'
2753+
type: 'string'
2754+
required:
2755+
- 'type'
2756+
type: 'object'
2757+
name:
2758+
type: 'string'
2759+
strict:
2760+
type: 'boolean'
2761+
type:
2762+
enum:
2763+
- 'custom'
2764+
type: 'string'
2765+
required:
2766+
- 'name'
2767+
- 'input_schema'
2768+
type: 'object'
2769+
- properties:
2770+
cache_control:
2771+
$ref: '#/components/schemas/AnthropicCacheControlDirective'
2772+
name:
2773+
enum:
2774+
- 'bash'
2775+
type: 'string'
2776+
type:
2777+
enum:
2778+
- 'bash_20250124'
2779+
type: 'string'
2780+
required:
2781+
- 'type'
2782+
- 'name'
2783+
type: 'object'
2784+
- properties:
2785+
cache_control:
2786+
$ref: '#/components/schemas/AnthropicCacheControlDirective'
2787+
name:
2788+
enum:
2789+
- 'str_replace_editor'
2790+
type: 'string'
2791+
type:
2792+
enum:
2793+
- 'text_editor_20250124'
2794+
type: 'string'
2795+
required:
2796+
- 'type'
2797+
- 'name'
2798+
type: 'object'
2799+
- properties:
2800+
allowed_domains:
2801+
items:
2802+
type: 'string'
2803+
type:
2804+
- 'array'
2805+
- 'null'
2806+
blocked_domains:
2807+
items:
2808+
type: 'string'
2809+
type:
2810+
- 'array'
2811+
- 'null'
2812+
cache_control:
2813+
$ref: '#/components/schemas/AnthropicCacheControlDirective'
2814+
max_uses:
2815+
type:
2816+
- 'integer'
2817+
- 'null'
2818+
name:
2819+
enum:
2820+
- 'web_search'
2821+
type: 'string'
2822+
type:
2823+
enum:
2824+
- 'web_search_20250305'
2825+
type: 'string'
2826+
user_location:
2827+
$ref: '#/components/schemas/AnthropicWebSearchToolUserLocation'
2828+
required:
2829+
- 'type'
2830+
- 'name'
2831+
type: 'object'
2832+
- properties:
2833+
allowed_callers:
2834+
$ref: '#/components/schemas/AnthropicAllowedCallers'
2835+
allowed_domains:
2836+
items:
2837+
type: 'string'
2838+
type:
2839+
- 'array'
2840+
- 'null'
2841+
blocked_domains:
2842+
items:
2843+
type: 'string'
2844+
type:
2845+
- 'array'
2846+
- 'null'
2847+
cache_control:
2848+
$ref: '#/components/schemas/AnthropicCacheControlDirective'
2849+
max_uses:
2850+
type:
2851+
- 'integer'
2852+
- 'null'
2853+
name:
2854+
enum:
2855+
- 'web_search'
2856+
type: 'string'
2857+
type:
2858+
enum:
2859+
- 'web_search_20260209'
2860+
type: 'string'
2861+
user_location:
2862+
$ref: '#/components/schemas/AnthropicWebSearchToolUserLocation'
2863+
required:
2864+
- 'type'
2865+
- 'name'
2866+
type: 'object'
27202867
AnthropicToolUseBlock:
27212868
example:
27222869
caller:
@@ -17844,7 +17991,7 @@ components:
1784417991
- 'data'
1784517992
type: 'object'
1784617993
MessagesToolAdditionBlock:
17847-
description: 'Loads a previously deferred tool (declared in `tools` with `defer_loading: true`) mid-conversation without invalidating the prompt cache. Only valid in `role: "system"` messages. Not supported on Claude Sonnet 5 or models older than Claude Opus 4.8.'
17994+
description: 'Adds a tool mid-conversation without invalidating the prompt cache: either a previously deferred tool (declared in `tools` with `defer_loading: true`, referenced by name) or a full inline `tool_definition`. Only valid in `role: "system"` messages. Not supported on Claude Sonnet 5 or models older than Claude Opus 4.8.'
1784817995
example:
1784917996
tool:
1785017997
name: 'get_forecast'
@@ -17891,6 +18038,17 @@ components:
1789118038
- 'type'
1789218039
- 'server_name'
1789318040
type: 'object'
18041+
- properties:
18042+
definition:
18043+
$ref: '#/components/schemas/AnthropicToolUnion'
18044+
type:
18045+
enum:
18046+
- 'tool_definition'
18047+
type: 'string'
18048+
required:
18049+
- 'type'
18050+
- 'definition'
18051+
type: 'object'
1789418052
type:
1789518053
enum:
1789618054
- 'tool_addition'

0 commit comments

Comments
 (0)