@aigne/anthropic 0.14.12 → 0.14.13-beta
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.14.13-beta](https://github.com/AIGNE-io/aigne-framework/compare/anthropic-v0.14.12...anthropic-v0.14.13-beta) (2025-12-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **core:** add nested getter pattern support for model options ([#796](https://github.com/AIGNE-io/aigne-framework/issues/796)) ([824b2fe](https://github.com/AIGNE-io/aigne-framework/commit/824b2fe55cb2a24620e2bb73b470532918fa2996))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/core bumped to 1.70.0-beta
|
|
16
|
+
* devDependencies
|
|
17
|
+
* @aigne/test-utils bumped to 0.5.66-beta
|
|
18
|
+
|
|
3
19
|
## [0.14.12](https://github.com/AIGNE-io/aigne-framework/compare/anthropic-v0.14.12-beta.1...anthropic-v0.14.12) (2025-11-28)
|
|
4
20
|
|
|
5
21
|
|
|
@@ -115,15 +115,15 @@ export declare class AnthropicChatModel extends ChatModel {
|
|
|
115
115
|
parallelToolCalls?: boolean | {
|
|
116
116
|
$get: string;
|
|
117
117
|
} | undefined;
|
|
118
|
-
modalities?: {
|
|
118
|
+
modalities?: import("@aigne/core").Modality[] | {
|
|
119
119
|
$get: string;
|
|
120
|
-
} |
|
|
120
|
+
} | undefined;
|
|
121
121
|
preferInputFileType?: "file" | "url" | {
|
|
122
122
|
$get: string;
|
|
123
123
|
} | undefined;
|
|
124
|
-
reasoningEffort?: number | {
|
|
124
|
+
reasoningEffort?: number | "minimal" | "low" | "medium" | "high" | {
|
|
125
125
|
$get: string;
|
|
126
|
-
} |
|
|
126
|
+
} | undefined;
|
|
127
127
|
}> | undefined;
|
|
128
128
|
get credential(): {
|
|
129
129
|
apiKey: string | undefined;
|
|
@@ -105,8 +105,8 @@ class AnthropicChatModel extends core_1.ChatModel {
|
|
|
105
105
|
process(input, options) {
|
|
106
106
|
return this._process(input, options);
|
|
107
107
|
}
|
|
108
|
-
async _process(input,
|
|
109
|
-
const modelOptions =
|
|
108
|
+
async _process(input, _options) {
|
|
109
|
+
const { modelOptions = {} } = input;
|
|
110
110
|
const model = modelOptions.model || this.credential.model;
|
|
111
111
|
const disableParallelToolUse = modelOptions.parallelToolCalls === false;
|
|
112
112
|
const body = {
|
|
@@ -115,15 +115,15 @@ export declare class AnthropicChatModel extends ChatModel {
|
|
|
115
115
|
parallelToolCalls?: boolean | {
|
|
116
116
|
$get: string;
|
|
117
117
|
} | undefined;
|
|
118
|
-
modalities?: {
|
|
118
|
+
modalities?: import("@aigne/core").Modality[] | {
|
|
119
119
|
$get: string;
|
|
120
|
-
} |
|
|
120
|
+
} | undefined;
|
|
121
121
|
preferInputFileType?: "file" | "url" | {
|
|
122
122
|
$get: string;
|
|
123
123
|
} | undefined;
|
|
124
|
-
reasoningEffort?: number | {
|
|
124
|
+
reasoningEffort?: number | "minimal" | "low" | "medium" | "high" | {
|
|
125
125
|
$get: string;
|
|
126
|
-
} |
|
|
126
|
+
} | undefined;
|
|
127
127
|
}> | undefined;
|
|
128
128
|
get credential(): {
|
|
129
129
|
apiKey: string | undefined;
|
|
@@ -115,15 +115,15 @@ export declare class AnthropicChatModel extends ChatModel {
|
|
|
115
115
|
parallelToolCalls?: boolean | {
|
|
116
116
|
$get: string;
|
|
117
117
|
} | undefined;
|
|
118
|
-
modalities?: {
|
|
118
|
+
modalities?: import("@aigne/core").Modality[] | {
|
|
119
119
|
$get: string;
|
|
120
|
-
} |
|
|
120
|
+
} | undefined;
|
|
121
121
|
preferInputFileType?: "file" | "url" | {
|
|
122
122
|
$get: string;
|
|
123
123
|
} | undefined;
|
|
124
|
-
reasoningEffort?: number | {
|
|
124
|
+
reasoningEffort?: number | "minimal" | "low" | "medium" | "high" | {
|
|
125
125
|
$get: string;
|
|
126
|
-
} |
|
|
126
|
+
} | undefined;
|
|
127
127
|
}> | undefined;
|
|
128
128
|
get credential(): {
|
|
129
129
|
apiKey: string | undefined;
|
|
@@ -99,8 +99,8 @@ export class AnthropicChatModel extends ChatModel {
|
|
|
99
99
|
process(input, options) {
|
|
100
100
|
return this._process(input, options);
|
|
101
101
|
}
|
|
102
|
-
async _process(input,
|
|
103
|
-
const modelOptions =
|
|
102
|
+
async _process(input, _options) {
|
|
103
|
+
const { modelOptions = {} } = input;
|
|
104
104
|
const model = modelOptions.model || this.credential.model;
|
|
105
105
|
const disableParallelToolUse = modelOptions.parallelToolCalls === false;
|
|
106
106
|
const body = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/anthropic",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.13-beta",
|
|
4
4
|
"description": "AIGNE Anthropic SDK for integrating with Claude AI models",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@anthropic-ai/sdk": "^0.63.0",
|
|
39
39
|
"zod": "^3.25.67",
|
|
40
|
-
"@aigne/core": "^1.
|
|
40
|
+
"@aigne/core": "^1.70.0-beta",
|
|
41
41
|
"@aigne/platform-helpers": "^0.6.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"npm-run-all": "^4.1.5",
|
|
47
47
|
"rimraf": "^6.0.1",
|
|
48
48
|
"typescript": "^5.9.2",
|
|
49
|
-
"@aigne/test-utils": "^0.5.
|
|
49
|
+
"@aigne/test-utils": "^0.5.66-beta"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"lint": "tsc --noEmit",
|