papi-ai/anthropic
最新稳定版本:v0.9.1
Composer 安装命令:
composer require papi-ai/anthropic
包简介
Anthropic Claude provider for PapiAI
README 文档
README
Anthropic Claude provider for PapiAI - A simple but powerful PHP library for building AI agents.
Installation
composer require papi-ai/anthropic
Usage
use PapiAI\Core\Agent; use PapiAI\Anthropic\AnthropicProvider; $provider = new AnthropicProvider( apiKey: $_ENV['ANTHROPIC_API_KEY'], ); $agent = new Agent( provider: $provider, model: 'claude-sonnet-4-20250514', instructions: 'You are a helpful assistant.', ); $response = $agent->run('Hello!'); echo $response->text;
Available Models
claude-sonnet-4-20250514(default)claude-3-opus-20240229claude-3-sonnet-20240229claude-3-haiku-20240307
Features
- Tool/function calling
- Vision/multimodal support
- Streaming support
License
MIT
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-07