An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# @adminforth/completion-adapter-anthropic-messages

License: MIT Build Status npm downloads npm version

[![Ask AI](https://tluma.ai/badge)](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)