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
description: 'Routing algorithm for this request. "capability" calls a small judge model to rate how demanding the task is, then picks the efficient or capable candidate. "stage" reads the tool-result history (errors, repeated failures, edits landing) and calls the judge only when those signals are undecided. "auto" is "stage" without the judge call. "random" picks one candidate at random. "composite" keeps the tier chosen on the last human turn and re-evaluates tool turns with the stage signals. "passthrough" serves the eligible candidates in the order OpenRouter already ranked them, with no routing decision and no judge call. Omit this field to use the platform default, capability.'
26811
+
enum:
26812
+
- 'capability'
26813
+
- 'stage'
26814
+
- 'auto'
26815
+
- 'random'
26816
+
- 'composite'
26817
+
- 'passthrough'
26818
+
type: 'string'
26819
+
x-speakeasy-unknown-values: allow
26820
+
id:
26821
+
enum:
26822
+
- 'switchyard-router'
26823
+
type: 'string'
26824
+
required:
26825
+
- 'id'
26826
+
type: 'object'
26798
26827
TaskClassificationItem:
26799
26828
example:
26800
26829
category_token_share: 0.48
@@ -37066,13 +37095,13 @@ paths:
37066
37095
example:
37067
37096
error:
37068
37097
code: 409
37069
-
message: 'The intern is not in a state that allows this operation'
37098
+
message: 'Another operation holds the intern, retry once it settles'
37070
37099
metadata:
37071
37100
reason: 'intern_busy'
37072
-
retryable: false
37101
+
retryable: true
37073
37102
schema:
37074
37103
$ref: '#/components/schemas/InternLifecycleError'
37075
-
description: 'The intern is not in a state that allows this operation.'
37104
+
description: 'The intern is not in a state that allows this operation. `metadata.reason` says whether to try again: `intern_busy` means another operation still holds the intern and carries `metadata.retryable: true`, so the same request may be sent again once it settles. A duplicate delete of an intern already being deleted is not a conflict and is accepted with 202.'
37076
37105
'413':
37077
37106
content:
37078
37107
application/json:
@@ -37725,13 +37754,13 @@ paths:
37725
37754
example:
37726
37755
error:
37727
37756
code: 409
37728
-
message: 'The intern is not in a state that allows this operation'
37757
+
message: 'Another operation holds the intern, retry once it settles'
37729
37758
metadata:
37730
37759
reason: 'intern_busy'
37731
-
retryable: false
37760
+
retryable: true
37732
37761
schema:
37733
37762
$ref: '#/components/schemas/InternLifecycleError'
37734
-
description: 'The intern is not in a state that allows this operation.'
37763
+
description: 'The intern is not in a state that allows this operation. `metadata.reason` says whether to try again: `intern_busy` means another operation still holds the intern and carries `metadata.retryable: true`, so the same request may be sent again once it settles. A duplicate delete of an intern already being deleted is not a conflict and is accepted with 202.'
37735
37764
'413':
37736
37765
content:
37737
37766
application/json:
@@ -37881,13 +37910,13 @@ paths:
37881
37910
example:
37882
37911
error:
37883
37912
code: 409
37884
-
message: 'The intern is not in a state that allows this operation'
37913
+
message: 'Another operation holds the intern, retry once it settles'
37885
37914
metadata:
37886
37915
reason: 'intern_busy'
37887
-
retryable: false
37916
+
retryable: true
37888
37917
schema:
37889
37918
$ref: '#/components/schemas/InternLifecycleError'
37890
-
description: 'The intern is not in a state that allows this operation.'
37919
+
description: 'The intern is not in a state that allows this operation. `metadata.reason` says whether to try again: `intern_busy` means another operation still holds the intern and carries `metadata.retryable: true`, so the same request may be sent again once it settles. A duplicate delete of an intern already being deleted is not a conflict and is accepted with 202.'
Routing algorithm for this request. "capability" calls a small judge model to rate how demanding the task is, then picks the efficient or capable candidate. "stage" reads the tool-result history (errors, repeated failures, edits landing) and calls the judge only when those signals are undecided. "auto" is "stage" without the judge call. "random" picks one candidate at random. "composite" keeps the tier chosen on the last human turn and re-evaluates tool turns with the stage signals. "passthrough" serves the eligible candidates in the order OpenRouter already ranked them, with no routing decision and no judge call. Omit this field to use the platform default, capability.
6
+
7
+
## Example Usage
8
+
9
+
```python
10
+
from openrouter.components import Algorithm
11
+
12
+
# Open enum: unrecognized values are captured as UnrecognizedStr
13
+
value: Algorithm ="capability"
14
+
```
15
+
16
+
17
+
## Values
18
+
19
+
This is an open enum. Unrecognized values will not fail type checks.
0 commit comments