@anvia/anthropic 0.5.0 → 1.0.0-rc.1
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/README.md +6 -4
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ pnpm --filter @anvia/anthropic build
|
|
|
19
19
|
## Usage
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
|
-
import {
|
|
22
|
+
import { Agent } from "@anvia/core";
|
|
23
23
|
import { AnthropicClient } from "@anvia/anthropic";
|
|
24
24
|
|
|
25
25
|
const client = new AnthropicClient({
|
|
@@ -28,9 +28,11 @@ const client = new AnthropicClient({
|
|
|
28
28
|
|
|
29
29
|
const model = client.completionModel("claude-sonnet-4-20250514");
|
|
30
30
|
|
|
31
|
-
const agent = new
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
const agent = new Agent({
|
|
32
|
+
id: "assistant",
|
|
33
|
+
model: model,
|
|
34
|
+
instructions: "Answer clearly and concisely.",
|
|
35
|
+
});
|
|
34
36
|
|
|
35
37
|
const response = await agent.prompt("Summarize Anvia in one sentence.").send();
|
|
36
38
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anvia/anthropic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
4
|
"description": "Anthropic provider adapter for Anvia.",
|
|
5
5
|
"author": "anvia",
|
|
6
6
|
"maintainer": "Indra Zulfi",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@anthropic-ai/sdk": "^0.
|
|
30
|
-
"@anthropic-ai/vertex-sdk": "^0.19.
|
|
29
|
+
"@anthropic-ai/sdk": "^0.116.0",
|
|
30
|
+
"@anthropic-ai/vertex-sdk": "^0.19.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^24.9.1",
|
|
34
34
|
"tsup": "^8.5.0",
|
|
35
35
|
"typescript": "^5.9.3",
|
|
36
36
|
"vitest": "^4.0.8",
|
|
37
|
-
"@anvia/core": "0.
|
|
37
|
+
"@anvia/core": "1.0.0-rc.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@anvia/core": "
|
|
40
|
+
"@anvia/core": "1.0.0-rc.1"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"prebuild": "test -f ../core/dist/index.d.ts || pnpm --filter @anvia/core build",
|