@reminix/anthropic 0.0.1 → 0.0.3
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 +37 -8
- package/dist/adapter.d.ts +24 -1
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +23 -1
- package/dist/adapter.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +34 -4
package/README.md
CHANGED
|
@@ -1,27 +1,36 @@
|
|
|
1
1
|
# @reminix/anthropic
|
|
2
2
|
|
|
3
|
-
Reminix Runtime adapter for the [Anthropic API](https://docs.anthropic.com/).
|
|
3
|
+
Reminix Runtime adapter for the [Anthropic API](https://docs.anthropic.com/). Serve Claude models as a REST API.
|
|
4
|
+
|
|
5
|
+
> **Ready to go live?** [Deploy to Reminix](https://reminix.com/docs/deployment) for zero-config hosting, or [self-host](https://reminix.com/docs/deployment/self-hosting) on your own infrastructure.
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
|
-
npm install @reminix/
|
|
10
|
+
npm install @reminix/anthropic @anthropic-ai/sdk
|
|
9
11
|
```
|
|
10
12
|
|
|
13
|
+
This will also install `@reminix/runtime` as a dependency.
|
|
14
|
+
|
|
11
15
|
## Quick Start
|
|
12
16
|
|
|
17
|
+
```typescript
|
|
18
|
+
import Anthropic from '@anthropic-ai/sdk';
|
|
19
|
+
import { wrapAndServe } from '@reminix/anthropic';
|
|
20
|
+
|
|
21
|
+
const client = new Anthropic();
|
|
22
|
+
wrapAndServe(client, { name: 'my-claude', model: 'claude-sonnet-4-20250514', port: 8080 });
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
For more flexibility (e.g., serving multiple agents), use `wrap` and `serve` separately:
|
|
26
|
+
|
|
13
27
|
```typescript
|
|
14
28
|
import Anthropic from '@anthropic-ai/sdk';
|
|
15
29
|
import { wrap } from '@reminix/anthropic';
|
|
16
30
|
import { serve } from '@reminix/runtime';
|
|
17
31
|
|
|
18
|
-
// Create an Anthropic client
|
|
19
32
|
const client = new Anthropic();
|
|
20
|
-
|
|
21
|
-
// Wrap it with the Reminix adapter
|
|
22
33
|
const agent = wrap(client, { name: 'my-claude', model: 'claude-sonnet-4-20250514' });
|
|
23
|
-
|
|
24
|
-
// Serve it as a REST API
|
|
25
34
|
serve([agent], { port: 8080 });
|
|
26
35
|
```
|
|
27
36
|
|
|
@@ -31,9 +40,22 @@ Your agent is now available at:
|
|
|
31
40
|
|
|
32
41
|
## API Reference
|
|
33
42
|
|
|
43
|
+
### `wrapAndServe(client, options)`
|
|
44
|
+
|
|
45
|
+
Wrap an Anthropic client and serve it immediately. Combines `wrap` and `serve` for single-agent setups.
|
|
46
|
+
|
|
47
|
+
| Parameter | Type | Default | Description |
|
|
48
|
+
|-----------|------|---------|-------------|
|
|
49
|
+
| `client` | `Anthropic` | required | An Anthropic client |
|
|
50
|
+
| `options.name` | `string` | `"anthropic-agent"` | Name for the agent (used in URL path) |
|
|
51
|
+
| `options.model` | `string` | `"claude-sonnet-4-20250514"` | Model to use |
|
|
52
|
+
| `options.maxTokens` | `number` | `4096` | Maximum tokens in response |
|
|
53
|
+
| `options.port` | `number` | `8080` | Port to serve on |
|
|
54
|
+
| `options.hostname` | `string` | `"0.0.0.0"` | Hostname to bind to |
|
|
55
|
+
|
|
34
56
|
### `wrap(client, options)`
|
|
35
57
|
|
|
36
|
-
Wrap an Anthropic client for use with Reminix Runtime.
|
|
58
|
+
Wrap an Anthropic client for use with Reminix Runtime. Use this with `serve` from `@reminix/runtime` for multi-agent setups.
|
|
37
59
|
|
|
38
60
|
| Parameter | Type | Default | Description |
|
|
39
61
|
|-----------|------|---------|-------------|
|
|
@@ -122,6 +144,13 @@ Conversational chat with message history.
|
|
|
122
144
|
|
|
123
145
|
For information about the server, endpoints, request/response formats, and more, see the [`@reminix/runtime`](https://www.npmjs.com/package/@reminix/runtime) package.
|
|
124
146
|
|
|
147
|
+
## Deployment
|
|
148
|
+
|
|
149
|
+
Ready to go live?
|
|
150
|
+
|
|
151
|
+
- **[Deploy to Reminix](https://reminix.com/docs/deployment)** - Zero-config cloud hosting
|
|
152
|
+
- **[Self-host](https://reminix.com/docs/deployment/self-hosting)** - Run on your own infrastructure
|
|
153
|
+
|
|
125
154
|
## Links
|
|
126
155
|
|
|
127
156
|
- [GitHub Repository](https://github.com/reminix-ai/runtime-typescript)
|
package/dist/adapter.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Anthropic adapter for Reminix Runtime.
|
|
3
3
|
*/
|
|
4
4
|
import type Anthropic from '@anthropic-ai/sdk';
|
|
5
|
-
import { BaseAdapter, type InvokeRequest, type InvokeResponse, type ChatRequest, type ChatResponse } from '@reminix/runtime';
|
|
5
|
+
import { BaseAdapter, type ServeOptions, type InvokeRequest, type InvokeResponse, type ChatRequest, type ChatResponse } from '@reminix/runtime';
|
|
6
6
|
/**
|
|
7
7
|
* Options for wrapping an Anthropic client.
|
|
8
8
|
*/
|
|
@@ -90,4 +90,27 @@ export declare class AnthropicAdapter extends BaseAdapter {
|
|
|
90
90
|
* ```
|
|
91
91
|
*/
|
|
92
92
|
export declare function wrap(client: Anthropic, options?: AnthropicAdapterOptions): AnthropicAdapter;
|
|
93
|
+
/**
|
|
94
|
+
* Options for wrapping and serving an Anthropic client.
|
|
95
|
+
*/
|
|
96
|
+
export interface WrapAndServeOptions extends AnthropicAdapterOptions, ServeOptions {
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Wrap an Anthropic client and serve it immediately.
|
|
100
|
+
*
|
|
101
|
+
* This is a convenience function that combines `wrap` and `serve` for single-agent setups.
|
|
102
|
+
*
|
|
103
|
+
* @param client - An Anthropic client.
|
|
104
|
+
* @param options - Combined adapter and server options.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```typescript
|
|
108
|
+
* import Anthropic from '@anthropic-ai/sdk';
|
|
109
|
+
* import { wrapAndServe } from '@reminix/anthropic';
|
|
110
|
+
*
|
|
111
|
+
* const client = new Anthropic();
|
|
112
|
+
* wrapAndServe(client, { name: 'my-agent', model: 'claude-sonnet-4-20250514', port: 8080 });
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
export declare function wrapAndServe(client: Anthropic, options?: WrapAndServeOptions): void;
|
|
93
116
|
//# sourceMappingURL=adapter.d.ts.map
|
package/dist/adapter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EACL,WAAW,
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EACL,WAAW,EAEX,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,YAAY,EAElB,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAUD;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,CAAC,WAAW,SAAe;IAEjC,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,UAAU,CAAS;IAE3B;;;;;OAKG;gBACS,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,uBAA4B;IAQpE,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAED;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAsBhC;;OAEG;IACH,OAAO,CAAC,cAAc;IAStB;;;;;;;;OAQG;IACG,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;IA8B7D;;;;;;;OAOG;IACG,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC;IAwBvD;;;;;OAKG;IACI,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC;IA+BlF;;;;;OAKG;IACI,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC;CAkB/E;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,uBAA4B,GAAG,gBAAgB,CAE/F;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB,EAAE,YAAY;CAAG;AAErF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,mBAAwB,GAAG,IAAI,CAIvF"}
|
package/dist/adapter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anthropic adapter for Reminix Runtime.
|
|
3
3
|
*/
|
|
4
|
-
import { BaseAdapter, } from '@reminix/runtime';
|
|
4
|
+
import { BaseAdapter, serve, } from '@reminix/runtime';
|
|
5
5
|
/**
|
|
6
6
|
* Adapter for Anthropic messages API.
|
|
7
7
|
*/
|
|
@@ -201,4 +201,26 @@ export class AnthropicAdapter extends BaseAdapter {
|
|
|
201
201
|
export function wrap(client, options = {}) {
|
|
202
202
|
return new AnthropicAdapter(client, options);
|
|
203
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* Wrap an Anthropic client and serve it immediately.
|
|
206
|
+
*
|
|
207
|
+
* This is a convenience function that combines `wrap` and `serve` for single-agent setups.
|
|
208
|
+
*
|
|
209
|
+
* @param client - An Anthropic client.
|
|
210
|
+
* @param options - Combined adapter and server options.
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```typescript
|
|
214
|
+
* import Anthropic from '@anthropic-ai/sdk';
|
|
215
|
+
* import { wrapAndServe } from '@reminix/anthropic';
|
|
216
|
+
*
|
|
217
|
+
* const client = new Anthropic();
|
|
218
|
+
* wrapAndServe(client, { name: 'my-agent', model: 'claude-sonnet-4-20250514', port: 8080 });
|
|
219
|
+
* ```
|
|
220
|
+
*/
|
|
221
|
+
export function wrapAndServe(client, options = {}) {
|
|
222
|
+
const { port, hostname, ...adapterOptions } = options;
|
|
223
|
+
const agent = wrap(client, adapterOptions);
|
|
224
|
+
serve([agent], { port, hostname });
|
|
225
|
+
}
|
|
204
226
|
//# sourceMappingURL=adapter.js.map
|
package/dist/adapter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EACL,WAAW,
|
|
1
|
+
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EACL,WAAW,EACX,KAAK,GAON,MAAM,kBAAkB,CAAC;AAmB1B;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,CAAC,WAAW,GAAG,WAAW,CAAC;IAEzB,MAAM,CAAY;IAClB,KAAK,CAAS;IACd,MAAM,CAAS;IACf,UAAU,CAAS;IAE3B;;;;;OAKG;IACH,YAAY,MAAiB,EAAE,UAAmC,EAAE;QAClE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;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,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;YACpD,CAAC;QACH,CAAC;IACH,CAAC;;AAGH;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,IAAI,CAAC,MAAiB,EAAE,UAAmC,EAAE;IAC3E,OAAO,IAAI,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC;AAOD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,YAAY,CAAC,MAAiB,EAAE,UAA+B,EAAE;IAC/E,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,GAAG,OAAO,CAAC;IACtD,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC3C,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;AACrC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AnthropicAdapter, wrap } from './adapter.js';
|
|
2
|
-
export type { AnthropicAdapterOptions } from './adapter.js';
|
|
1
|
+
export { AnthropicAdapter, wrap, wrapAndServe } from './adapter.js';
|
|
2
|
+
export type { AnthropicAdapterOptions, WrapAndServeOptions } from './adapter.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACpE,YAAY,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AnthropicAdapter, wrap } from './adapter.js';
|
|
1
|
+
export { AnthropicAdapter, wrap, wrapAndServe } from './adapter.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reminix/anthropic",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Reminix adapter for Anthropic",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Reminix adapter for Anthropic - serve agents as REST APIs",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Reminix Team",
|
|
8
|
+
"email": "team@reminix.com",
|
|
9
|
+
"url": "https://reminix.com"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"ai",
|
|
13
|
+
"agents",
|
|
14
|
+
"anthropic",
|
|
15
|
+
"claude",
|
|
16
|
+
"llm",
|
|
17
|
+
"reminix",
|
|
18
|
+
"typescript"
|
|
19
|
+
],
|
|
20
|
+
"homepage": "https://reminix.com",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/reminix-ai/runtime-typescript.git",
|
|
24
|
+
"directory": "packages/anthropic"
|
|
25
|
+
},
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/reminix-ai/runtime-typescript/issues"
|
|
28
|
+
},
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
6
35
|
"type": "module",
|
|
7
36
|
"main": "./dist/index.js",
|
|
8
37
|
"types": "./dist/index.d.ts",
|
|
@@ -13,10 +42,11 @@
|
|
|
13
42
|
}
|
|
14
43
|
},
|
|
15
44
|
"files": [
|
|
16
|
-
"dist"
|
|
45
|
+
"dist",
|
|
46
|
+
"LICENSE"
|
|
17
47
|
],
|
|
18
48
|
"dependencies": {
|
|
19
|
-
"@reminix/runtime": "^0.0.
|
|
49
|
+
"@reminix/runtime": "^0.0.3"
|
|
20
50
|
},
|
|
21
51
|
"peerDependencies": {
|
|
22
52
|
"@anthropic-ai/sdk": ">=0.71.0"
|