@reventlessdev/rescript-anthropic
v1.0.0-alpha.5
Published
ReScript bindings for @anthropic-ai/sdk and @anthropic-ai/claude-agent-sdk
Readme
@reventlessdev/rescript-anthropic
⚠️ Alpha. APIs can change without notice between releases. Pin exact versions and expect breaking changes.
ReScript bindings for @anthropic-ai/sdk and the @anthropic-ai/claude-agent-sdk, used across the Reventless framework. It binds @anthropic-ai/sdk ^0.71.0 (bundled dependency) and, optionally, @anthropic-ai/claude-agent-sdk >=0.3.0.
Install
pnpm add @reventlessdev/rescript-anthropicThen register it as a ReScript dependency in rescript.json:
{
"dependencies": ["@reventlessdev/rescript-anthropic"]
}Requires ReScript ^12.3.0 (peer dependency). The @anthropic-ai/claude-agent-sdk (>=0.3.0) is an optional peer dependency — install it only if you use the agent-SDK bindings.
Usage
The bindings are exposed as ReScript modules:
Anthropic— bindings for@anthropic-ai/sdk.AnthropicAgentSdk— bindings for@anthropic-ai/claude-agent-sdk.AnthropicZod— Zod helpers used by the SDK bindings.
Links
- 📚 Documentation — docs.reventless.dev
- 📦 Repository — ReventlessDev/reventless-core
- 📋 Changelog
- 🔗 Upstream —
@anthropic-ai/sdk
