@framers/agentos 0.15.69 → 0.15.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/generateText.d.ts +7 -1
- package/dist/api/generateText.d.ts.map +1 -1
- package/dist/api/generateText.js.map +1 -1
- package/dist/api/runtime/ExternalToolResultHandler.d.ts.map +1 -1
- package/dist/api/runtime/ExternalToolResultHandler.js +9 -2
- package/dist/api/runtime/ExternalToolResultHandler.js.map +1 -1
- package/dist/api/types/AgentOSInput.d.ts +6 -0
- package/dist/api/types/AgentOSInput.d.ts.map +1 -1
- package/dist/cognition/substrate/GMI.d.ts +12 -0
- package/dist/cognition/substrate/GMI.d.ts.map +1 -1
- package/dist/cognition/substrate/GMI.js +71 -11
- package/dist/cognition/substrate/GMI.js.map +1 -1
- package/dist/cognition/substrate/IGMI.d.ts +8 -0
- package/dist/cognition/substrate/IGMI.d.ts.map +1 -1
- package/dist/cognition/substrate/IGMI.js.map +1 -1
- package/dist/core/llm/providers/implementations/AnthropicProvider.d.ts +6 -1
- package/dist/core/llm/providers/implementations/AnthropicProvider.d.ts.map +1 -1
- package/dist/core/llm/providers/implementations/AnthropicProvider.js +66 -18
- package/dist/core/llm/providers/implementations/AnthropicProvider.js.map +1 -1
- package/dist/core/llm/providers/model-cache-capabilities.d.ts +4 -4
- package/dist/core/llm/providers/model-cache-capabilities.d.ts.map +1 -1
- package/dist/core/llm/providers/model-cache-capabilities.js +7 -5
- package/dist/core/llm/providers/model-cache-capabilities.js.map +1 -1
- package/dist/core/llm/providers/model-effort.d.ts +4 -2
- package/dist/core/llm/providers/model-effort.d.ts.map +1 -1
- package/dist/core/llm/providers/model-effort.js +5 -3
- package/dist/core/llm/providers/model-effort.js.map +1 -1
- package/dist/core/llm/providers/model-thinking.d.ts +9 -4
- package/dist/core/llm/providers/model-thinking.d.ts.map +1 -1
- package/dist/core/llm/providers/model-thinking.js +12 -4
- package/dist/core/llm/providers/model-thinking.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-cache-capabilities.js","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-cache-capabilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAgBH,+EAA+E;AAC/E,MAAM,YAAY,GAAG,IAAI,CAAC;AAE1B,mEAAmE;AACnE,SAAS,IAAI,CAAC,KAAa,EAAE,oBAA6B;IACxD,OAAO;QACL,qBAAqB,EAAE,IAAI;QAC3B,wBAAwB,EAAE,KAAK;QAC/B,6BAA6B,EAAE,oBAAoB;KACpD,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,wBAAwB,CAAC,OAAe;IACtD,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAEjC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;QACvB,iEAAiE;QACjE,mEAAmE;QACnE,OAAO;YACL,qBAAqB,EAAE,KAAK;YAC5B,wBAAwB,EAAE,YAAY;YACtC,6BAA6B,EAAE,KAAK;SACrC,CAAC;IACJ,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"model-cache-capabilities.js","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-cache-capabilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAgBH,+EAA+E;AAC/E,MAAM,YAAY,GAAG,IAAI,CAAC;AAE1B,mEAAmE;AACnE,SAAS,IAAI,CAAC,KAAa,EAAE,oBAA6B;IACxD,OAAO;QACL,qBAAqB,EAAE,IAAI;QAC3B,wBAAwB,EAAE,KAAK;QAC/B,6BAA6B,EAAE,oBAAoB;KACpD,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,wBAAwB,CAAC,OAAe;IACtD,MAAM,EAAE,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AAE,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAErE,iBAAiB;IACjB,IAAI,mCAAmC,CAAC,IAAI,CAAC,EAAE,CAAC;QAAE,OAAO,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC1E,IAAI,qEAAqE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;QACnF,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,0EAA0E;IAC1E,+CAA+C;IAC/C,OAAO,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* `output_config.effort` (low|medium|high|xhigh|max) controls reasoning depth
|
|
5
5
|
* and overall token spend. Supported on Fable 5 / Mythos 5, Opus 4.5/4.6/4.7/4.8,
|
|
6
|
-
* Sonnet 5,
|
|
6
|
+
* Sonnet 5, Sonnet 4.6 (Sonnet 5 is the first Sonnet tier with `xhigh`) and
|
|
7
|
+
* Haiku 5.5 (all five levels, default `medium`);
|
|
7
8
|
* Sonnet 4.5, Haiku 4.5, and older models 400 on it. It is
|
|
8
9
|
* INDEPENDENT of the extended-thinking block and of tool_choice; it rides on
|
|
9
10
|
* `output_config` and is emitted whenever the caller passes an effort level and
|
|
@@ -16,7 +17,8 @@ export type EffortLevel = (typeof EFFORT_LEVELS)[number];
|
|
|
16
17
|
/**
|
|
17
18
|
* Whether the given Claude model id accepts `output_config.effort`.
|
|
18
19
|
*
|
|
19
|
-
* Allow-by-explicit-family: Opus 4.5/4.6/4.7/4.8, Opus 5, Sonnet 5, Sonnet 4.6,
|
|
20
|
+
* Allow-by-explicit-family: Opus 4.5/4.6/4.7/4.8, Opus 5, Sonnet 5, Sonnet 4.6,
|
|
21
|
+
* Fable/Mythos 5, and Haiku 5.5 (Haiku 4.5 returns 400 on effort).
|
|
20
22
|
* Matches both the bare (`claude-opus-4-8`) and provider-prefixed
|
|
21
23
|
* (`anthropic/claude-opus-4-8`) forms, with no `^` anchor.
|
|
22
24
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-effort.d.ts","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-effort.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"model-effort.d.ts","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-effort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,uFAAuF;AACvF,eAAO,MAAM,aAAa,oDAAqD,CAAC;AAChF,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED,+CAA+C;AAC/C,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,WAAW,CAE1D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAKhG;AAuBD,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAEpF;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEzE;AAoCD;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEvE;AAED;;;;;;;;;GASG;AACH,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,OAAO,GACd,MAAM,GAAG,SAAS,CAKpB;AA8BD;;;;GAIG;AACH,wBAAgB,wCAAwC,CACtD,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,MAAM,GACd,MAAM,GAAG,SAAS,CAUpB"}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* `output_config.effort` (low|medium|high|xhigh|max) controls reasoning depth
|
|
5
5
|
* and overall token spend. Supported on Fable 5 / Mythos 5, Opus 4.5/4.6/4.7/4.8,
|
|
6
|
-
* Sonnet 5,
|
|
6
|
+
* Sonnet 5, Sonnet 4.6 (Sonnet 5 is the first Sonnet tier with `xhigh`) and
|
|
7
|
+
* Haiku 5.5 (all five levels, default `medium`);
|
|
7
8
|
* Sonnet 4.5, Haiku 4.5, and older models 400 on it. It is
|
|
8
9
|
* INDEPENDENT of the extended-thinking block and of tool_choice; it rides on
|
|
9
10
|
* `output_config` and is emitted whenever the caller passes an effort level and
|
|
@@ -15,14 +16,15 @@ export const EFFORT_LEVELS = ['low', 'medium', 'high', 'xhigh', 'max'];
|
|
|
15
16
|
/**
|
|
16
17
|
* Whether the given Claude model id accepts `output_config.effort`.
|
|
17
18
|
*
|
|
18
|
-
* Allow-by-explicit-family: Opus 4.5/4.6/4.7/4.8, Opus 5, Sonnet 5, Sonnet 4.6,
|
|
19
|
+
* Allow-by-explicit-family: Opus 4.5/4.6/4.7/4.8, Opus 5, Sonnet 5, Sonnet 4.6,
|
|
20
|
+
* Fable/Mythos 5, and Haiku 5.5 (Haiku 4.5 returns 400 on effort).
|
|
19
21
|
* Matches both the bare (`claude-opus-4-8`) and provider-prefixed
|
|
20
22
|
* (`anthropic/claude-opus-4-8`) forms, with no `^` anchor.
|
|
21
23
|
*
|
|
22
24
|
* @param modelId Anthropic-side model id.
|
|
23
25
|
*/
|
|
24
26
|
export function modelSupportsEffort(modelId) {
|
|
25
|
-
return /claude-(opus-4-(5|6|7|8)|opus-5|sonnet-(4-6|5)|fable-5|mythos-5)/i.test(modelId);
|
|
27
|
+
return /claude-(opus-4-(5|6|7|8)|opus-5|sonnet-(4-6|5)|fable-5|mythos-5|haiku-5-5)/i.test(modelId);
|
|
26
28
|
}
|
|
27
29
|
/** Whether a value is a valid effort level. */
|
|
28
30
|
export function isEffortLevel(v) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-effort.js","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-effort.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"model-effort.js","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-effort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,uFAAuF;AACvF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAU,CAAC;AAGhF;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAe;IACjD,OAAO,6EAA6E,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACrG,CAAC;AAED,+CAA+C;AAC/C,MAAM,UAAU,aAAa,CAAC,CAAU;IACtC,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAK,aAAmC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AACnF,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,sBAAsB,CAAC,OAAe,EAAE,MAAe;IACrE,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC;QAAE,OAAO,SAAS,CAAC;IAC9E,IAAI,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,KAAK,OAAO,IAAI,MAAM,KAAK,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC;IAChG,IAAI,2BAA2B,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,KAAK,OAAO;QAAE,OAAO,MAAM,CAAC;IACnF,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,uBAAuB,GAAgC;IAC3D,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,IAAI,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AM,sBAAsB,GAAsB,EAAE,CAAC;AAErD;;;;GAIG;AACH,MAAM,UAAU,wCAAwC,CACtD,MAAe,EACf,OAAe;IAEf,MAAM,IAAI,GAAG,gCAAgC,CAAC,MAAM,CAAC,CAAC;IACtD,IACE,MAAM,KAAK,KAAK;WACb,IAAI,KAAK,OAAO;WAChB,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAC1E,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -14,14 +14,18 @@
|
|
|
14
14
|
* budget AND the model supports it.
|
|
15
15
|
*
|
|
16
16
|
* Turning thinking off (`thinking: false`): leaving the field out keeps the
|
|
17
|
-
* model's default, which is thinking ON for Opus 5, Sonnet 5 and
|
|
17
|
+
* model's default, which is thinking ON for Opus 5, Sonnet 5, Sonnet 5.5 and Haiku 5.5,
|
|
18
18
|
* and always on for Opus 5.5, Fable and Mythos. The models that can turn it
|
|
19
19
|
* off each take their own shape, and some only at a capped effort;
|
|
20
20
|
* {@link resolveThinkingOff} maps a model id to it.
|
|
21
21
|
*
|
|
22
22
|
* This is the thinking-capability sibling of `modelSupportsTemperature`
|
|
23
23
|
* in AnthropicProvider.ts — the same reasoning-default family that
|
|
24
|
-
* REJECTS `temperature` is the family that ACCEPTS `thinking
|
|
24
|
+
* REJECTS `temperature` is the family that ACCEPTS `thinking`, with one
|
|
25
|
+
* exception: Claude Haiku 5.5 rejects `temperature` but is not in
|
|
26
|
+
* {@link modelSupportsThinking}. It thinks adaptively by default, so a
|
|
27
|
+
* thinking budget needs no block there, and it keeps a forced `tool_choice`
|
|
28
|
+
* that a thinking-on block would clamp to `auto`. Kept in
|
|
25
29
|
* its own pure module (mirroring `model-output-limits.ts`) so the unit
|
|
26
30
|
* test imports no provider/SDK code.
|
|
27
31
|
*/
|
|
@@ -35,8 +39,8 @@
|
|
|
35
39
|
* or rejects it. Opus 5.5, Sonnet 5.5 and Fable 5.1 match the `opus-5`,
|
|
36
40
|
* `sonnet-5` and `fable-5` alternatives on purpose, because `\b` matches at
|
|
37
41
|
* the hyphen before their trailing version digit. Future reasoning-first
|
|
38
|
-
* siblings get added to the regex as Anthropic releases them,
|
|
39
|
-
*
|
|
42
|
+
* siblings get added to the regex as Anthropic releases them, alongside
|
|
43
|
+
* `modelSupportsTemperature` (which also lists Claude Haiku 5.5).
|
|
40
44
|
*
|
|
41
45
|
* @param modelId Anthropic-side model id.
|
|
42
46
|
* @returns `true` when Anthropic accepts a `thinking` block for this model.
|
|
@@ -103,6 +107,7 @@ export type ThinkingOffShape = {
|
|
|
103
107
|
* | Sonnet 5.5 | `{ type: 'between_tools' }` at effort high or below | probed 2026-09-30: `disabled` returns 400, `between_tools` 200 |
|
|
104
108
|
* | Opus 5 | `{ type: 'disabled' }` at effort high or below | probed 2026-09-30: `disabled` 200, `between_tools` 400 |
|
|
105
109
|
* | Sonnet 5 | `{ type: 'disabled' }` | Anthropic's model docs |
|
|
110
|
+
* | Haiku 5.5 | `{ type: 'disabled' }` at effort high or below | Anthropic's effort docs: `disabled` at `high` or below, 400 at `xhigh` or `max` |
|
|
106
111
|
* | Opus 5.5, Fable 5.x, Mythos 5.x | none: always on | probed 2026-09-30 on Opus 5.5 and Fable 5.1: both shapes return 400 |
|
|
107
112
|
* | everything else | omit the field | thinks only when asked |
|
|
108
113
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-thinking.d.ts","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-thinking.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"model-thinking.d.ts","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-thinking.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED,0EAA0E;AAC1E,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,GAAG,SAAS,EACtD,kBAAkB,EAAE,MAAM,GAAG,SAAS,GACrC,uBAAuB,GAAG,IAAI,CAGhC;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,gBAAgB,GACxB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IACE,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,eAAe,CAAA;KAAE,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GACD;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,CAAC;AAE1B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,gBAAgB,CAapE"}
|
|
@@ -14,14 +14,18 @@
|
|
|
14
14
|
* budget AND the model supports it.
|
|
15
15
|
*
|
|
16
16
|
* Turning thinking off (`thinking: false`): leaving the field out keeps the
|
|
17
|
-
* model's default, which is thinking ON for Opus 5, Sonnet 5 and
|
|
17
|
+
* model's default, which is thinking ON for Opus 5, Sonnet 5, Sonnet 5.5 and Haiku 5.5,
|
|
18
18
|
* and always on for Opus 5.5, Fable and Mythos. The models that can turn it
|
|
19
19
|
* off each take their own shape, and some only at a capped effort;
|
|
20
20
|
* {@link resolveThinkingOff} maps a model id to it.
|
|
21
21
|
*
|
|
22
22
|
* This is the thinking-capability sibling of `modelSupportsTemperature`
|
|
23
23
|
* in AnthropicProvider.ts — the same reasoning-default family that
|
|
24
|
-
* REJECTS `temperature` is the family that ACCEPTS `thinking
|
|
24
|
+
* REJECTS `temperature` is the family that ACCEPTS `thinking`, with one
|
|
25
|
+
* exception: Claude Haiku 5.5 rejects `temperature` but is not in
|
|
26
|
+
* {@link modelSupportsThinking}. It thinks adaptively by default, so a
|
|
27
|
+
* thinking budget needs no block there, and it keeps a forced `tool_choice`
|
|
28
|
+
* that a thinking-on block would clamp to `auto`. Kept in
|
|
25
29
|
* its own pure module (mirroring `model-output-limits.ts`) so the unit
|
|
26
30
|
* test imports no provider/SDK code.
|
|
27
31
|
*/
|
|
@@ -35,8 +39,8 @@
|
|
|
35
39
|
* or rejects it. Opus 5.5, Sonnet 5.5 and Fable 5.1 match the `opus-5`,
|
|
36
40
|
* `sonnet-5` and `fable-5` alternatives on purpose, because `\b` matches at
|
|
37
41
|
* the hyphen before their trailing version digit. Future reasoning-first
|
|
38
|
-
* siblings get added to the regex as Anthropic releases them,
|
|
39
|
-
*
|
|
42
|
+
* siblings get added to the regex as Anthropic releases them, alongside
|
|
43
|
+
* `modelSupportsTemperature` (which also lists Claude Haiku 5.5).
|
|
40
44
|
*
|
|
41
45
|
* @param modelId Anthropic-side model id.
|
|
42
46
|
* @returns `true` when Anthropic accepts a `thinking` block for this model.
|
|
@@ -77,6 +81,7 @@ export function resolveThinkingPayload(modelId, thinking, requestedMaxTokens) {
|
|
|
77
81
|
* | Sonnet 5.5 | `{ type: 'between_tools' }` at effort high or below | probed 2026-09-30: `disabled` returns 400, `between_tools` 200 |
|
|
78
82
|
* | Opus 5 | `{ type: 'disabled' }` at effort high or below | probed 2026-09-30: `disabled` 200, `between_tools` 400 |
|
|
79
83
|
* | Sonnet 5 | `{ type: 'disabled' }` | Anthropic's model docs |
|
|
84
|
+
* | Haiku 5.5 | `{ type: 'disabled' }` at effort high or below | Anthropic's effort docs: `disabled` at `high` or below, 400 at `xhigh` or `max` |
|
|
80
85
|
* | Opus 5.5, Fable 5.x, Mythos 5.x | none: always on | probed 2026-09-30 on Opus 5.5 and Fable 5.1: both shapes return 400 |
|
|
81
86
|
* | everything else | omit the field | thinks only when asked |
|
|
82
87
|
*
|
|
@@ -99,6 +104,9 @@ export function resolveThinkingOff(modelId) {
|
|
|
99
104
|
}
|
|
100
105
|
if (/^claude-sonnet-5\b/i.test(modelId))
|
|
101
106
|
return { kind: 'send', thinking: { type: 'disabled' } };
|
|
107
|
+
if (/^claude-haiku-5-5\b/i.test(modelId)) {
|
|
108
|
+
return { kind: 'send', thinking: { type: 'disabled' }, maxEffort: 'high' };
|
|
109
|
+
}
|
|
102
110
|
return { kind: 'omit' };
|
|
103
111
|
}
|
|
104
112
|
//# sourceMappingURL=model-thinking.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-thinking.js","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-thinking.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"model-thinking.js","sourceRoot":"","sources":["../../../../src/core/llm/providers/model-thinking.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACnD,OAAO,mDAAmD,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC3E,CAAC;AAQD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAAe,EACf,QAAsD,EACtD,kBAAsC;IAEtC,IAAI,CAAC,QAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAC9D,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,kBAAkB,IAAI,CAAC,EAAE,CAAC;AAChF,CAAC;AAqBD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAe;IAChD,IAAI,uBAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;IAClF,CAAC;IACD,IAAI,wCAAwC,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IACzF,IAAI,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACtC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;IAC7E,CAAC;IACD,IAAI,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,CAAC;IACjG,IAAI,sBAAsB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACzC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;IAC7E,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AAC1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@framers/agentos",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.71",
|
|
4
4
|
"description": "AgentOS: open-source TypeScript framework for autonomous AI agents. Unified graph orchestration, cognitive memory, runtime tool forging, multi-tier guardrails, voice pipeline, and 11 LLM providers.",
|
|
5
5
|
"homepage": "https://agentos.sh",
|
|
6
6
|
"repository": {
|