You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 54c8637
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .speakeasy/in.openapi.yaml
+88-2Lines changed: 88 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8661,6 +8661,8 @@ components:
8661
8661
- 'null'
8662
8662
cost_details:
8663
8663
$ref: '#/components/schemas/CostDetails'
8664
+
deferred_tools_details:
8665
+
$ref: '#/components/schemas/DeferredToolsDetails'
8664
8666
is_byok:
8665
8667
description: 'Whether a request was made using a Bring Your Own Key configuration'
8666
8668
type: 'boolean'
@@ -11430,9 +11432,10 @@ components:
11430
11432
validation: 'runtime'
11431
11433
properties:
11432
11434
profile:
11433
-
description: 'Loading profile. Only `portable` is available in this release: OpenRouter serves deferral with router-built search and call wrappers on any model.'
11435
+
description: 'Loading profile. `portable` serves the `defer_loading` tools with router-built search and call wrappers on any model and keeps the catalog fixed. `universal` defers every wrappable tool behind the same wrappers so the provider-facing tool list never changes, and rebuilds the catalog from each request so tools can be added or removed mid-conversation.'
11434
11436
enum:
11435
11437
- 'portable'
11438
+
- 'universal'
11436
11439
type: 'string'
11437
11440
protocol:
11438
11441
enum:
@@ -11451,6 +11454,34 @@ components:
11451
11454
- 'validation'
11452
11455
- 'search'
11453
11456
type: 'object'
11457
+
DeferredToolsDetails:
11458
+
description: 'Totals across every upstream model call of a deferred-tools run. The native usage fields report only the final call; cost covers every call.'
11459
+
example:
11460
+
completion_tokens: 180
11461
+
prompt_tokens: 2400
11462
+
total_tokens: 2580
11463
+
turns: 2
11464
+
properties:
11465
+
completion_tokens:
11466
+
description: 'Completion tokens summed over every upstream call'
11467
+
type: 'integer'
11468
+
prompt_tokens:
11469
+
description: 'Prompt tokens summed over every upstream call'
11470
+
type: 'integer'
11471
+
total_tokens:
11472
+
description: 'Sum of the above two fields'
11473
+
type: 'integer'
11474
+
turns:
11475
+
description: 'Upstream model calls the run made'
11476
+
exclusiveMinimum: true
11477
+
minimum: 0
11478
+
type: 'integer'
11479
+
required:
11480
+
- 'turns'
11481
+
- 'prompt_tokens'
11482
+
- 'completion_tokens'
11483
+
- 'total_tokens'
11484
+
type: 'object'
11454
11485
DeferredToolsSearchStrategy:
11455
11486
description: 'Router-local regex/BM25 or caller-owned custom search.'
11456
11487
discriminator:
@@ -18835,6 +18866,28 @@ components:
18835
18866
- 'null'
18836
18867
cost_details:
18837
18868
$ref: '#/components/schemas/CostDetails'
18869
+
deferred_tools_details:
18870
+
properties:
18871
+
completion_tokens:
18872
+
description: 'Completion tokens summed over every upstream call'
18873
+
type: 'integer'
18874
+
prompt_tokens:
18875
+
description: 'Prompt tokens summed over every upstream call'
18876
+
type: 'integer'
18877
+
total_tokens:
18878
+
description: 'Sum of the above two fields'
18879
+
type: 'integer'
18880
+
turns:
18881
+
description: 'Upstream model calls the run made'
18882
+
exclusiveMinimum: true
18883
+
minimum: 0
18884
+
type: 'integer'
18885
+
required:
18886
+
- 'turns'
18887
+
- 'prompt_tokens'
18888
+
- 'completion_tokens'
18889
+
- 'total_tokens'
18890
+
type: 'object'
18838
18891
is_byok:
18839
18892
type: 'boolean'
18840
18893
iterations:
@@ -25989,10 +26042,32 @@ components:
25989
26042
status: 'completed'
25990
26043
type: 'openrouter:tool_search'
25991
26044
properties:
26045
+
arguments:
26046
+
description: 'The JSON arguments of the model call, verbatim. Replaying the item reuses them.'
26047
+
example: '{"query":"weather tools"}'
26048
+
type: 'string'
26049
+
call_id:
26050
+
description: 'The ID of the model call that ran the search. Replaying the item reuses it.'
26051
+
example: 'call_search_1'
26052
+
type: 'string'
26053
+
catalog_index:
26054
+
description: 'The deferred-tool index the router showed the model with a pre-search, listing tool sources and names. Replaying the item shows the same index.'
26055
+
example: "Deferred tools, found with tool_search and called with tool_exec:\nSources: mcp__sentry (12)."
26056
+
type: 'string'
25992
26057
error:
25993
26058
description: 'The error message when the tool call failed before producing a result. Set together with `status: ''failed''`; absent on a successful call.'
25994
26059
example: 'Tool execution failed'
25995
26060
type: 'string'
26061
+
format:
26062
+
description: 'How the model saw the matches. `compact` means each tool by name, description, and input shape, plus a call example. Replaying the item renders the same result.'
26063
+
enum:
26064
+
- 'compact'
26065
+
example: 'compact'
26066
+
type: 'string'
26067
+
hint:
26068
+
description: 'The guidance the model got when the search matched no tools.'
26069
+
example: 'No tools matched. Search again with other keywords, or load tools by exact name with "select:Name1,Name2".'
description: 'The IDs of every tool call in the model response that ran the search, in order. Replaying the item keeps those calls in one turn.'
26095
+
example:
26096
+
- 'call_search_1'
26097
+
- 'call_exec_1'
26098
+
items:
26099
+
type: 'string'
26100
+
type: 'array'
26018
26101
type:
26019
26102
enum:
26020
26103
- 'openrouter:tool_search'
@@ -34332,6 +34415,8 @@ components:
34332
34415
- 'upstream_inference_input_cost'
34333
34416
- 'upstream_inference_output_cost'
34334
34417
type: 'object'
34418
+
deferred_tools_details:
34419
+
$ref: '#/components/schemas/DeferredToolsDetails'
34335
34420
is_byok:
34336
34421
description: 'Whether a request was made using a Bring Your Own Key configuration'
34337
34422
type: 'boolean'
@@ -47784,10 +47869,11 @@ paths:
47784
47869
- 'string'
47785
47870
- 'null'
47786
47871
role:
47787
-
description: 'Role of the member in the organization'
47872
+
description: 'Role of the member in the organization. `org:viewer` is coming soon and not yet available. Once launched, it has read-only organization access: it can view organization settings, billing and workspaces but not change them. Workspace roles can still grant write access in specific workspaces.'
0 commit comments