@anvia/anthropic 0.5.1 → 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.
Files changed (2) hide show
  1. package/README.md +6 -4
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -19,7 +19,7 @@ pnpm --filter @anvia/anthropic build
19
19
  ## Usage
20
20
 
21
21
  ```ts
22
- import { AgentBuilder } from "@anvia/core";
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 AgentBuilder("assistant", model)
32
- .instructions("Answer clearly and concisely.")
33
- .build();
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.5.1",
3
+ "version": "1.0.0-rc.1",
4
4
  "description": "Anthropic provider adapter for Anvia.",
5
5
  "author": "anvia",
6
6
  "maintainer": "Indra Zulfi",
@@ -34,10 +34,10 @@
34
34
  "tsup": "^8.5.0",
35
35
  "typescript": "^5.9.3",
36
36
  "vitest": "^4.0.8",
37
- "@anvia/core": "0.25.1"
37
+ "@anvia/core": "1.0.0-rc.1"
38
38
  },
39
39
  "peerDependencies": {
40
- "@anvia/core": ">=0.7.1 <1.0.0"
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",