https://github.com/devforth/adminforth-completion-adapter-anthropic-messages
https://github.com/devforth/adminforth-completion-adapter-anthropic-messages
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/devforth/adminforth-completion-adapter-anthropic-messages
- Owner: devforth
- License: mit
- Created: 2026-04-23T09:11:31.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-15T09:11:12.000Z (29 days ago)
- Last Synced: 2026-05-15T11:29:00.073Z (29 days ago)
- Language: TypeScript
- Size: 73.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @adminforth/completion-adapter-anthropic-messages
[](https://tluma.ai/ask-ai/devforth/adminforth)
AdminForth completion adapter for the Anthropic Messages API.
## Installation
```bash
pnpm i @adminforth/completion-adapter-anthropic-messages
```
## Usage
```ts
import CompletionAdapterAntropicMessages from "@adminforth/completion-adapter-anthropic-messages";
const adapter = new CompletionAdapterAntropicMessages({
anthropicApiKey: process.env.ANTHROPIC_API_KEY as string,
model: "claude-sonnet-4-5-20250929",
extraRequestBodyParameters: {
temperature: 0.7,
},
});
```
The adapter supports:
- regular text completion
- JSON Schema structured output via the Messages parse helper
- tool calls
- streaming output chunks
- extended thinking when the token budget allows it
## Related links
- [AdminForth website](https://adminforth.dev)
- [npm package](https://www.npmjs.com/package/@adminforth/completion-adapter-anthropic-messages)
- [All completion adapters](https://adminforth.dev/docs/tutorial/Adapters/ai-completion-adapters/)
- [All AdminForth adapters](https://adminforth.dev/docs/tutorial/ListOfAdapters/)
- [Built by DevForth](https://devforth.io)