adachsoft / ai-integration-moonshot
Moonshot provider for adachsoft/ai-integration tool-calling API
Package info
gitlab.com/a.adach/ai-integration-moonshot
pkg:composer/adachsoft/ai-integration-moonshot
0.1.1
2026-01-23 08:24 UTC
Requires
- php: ^8.3
- adachsoft/ai-integration: ^0.6
Requires (Dev)
- phpunit/phpunit: ^12.4
This package is not auto-updated.
Last update: 2026-03-07 06:11:24 UTC
README
Moonshot provider for adachsoft/ai-integration tool-calling API.
Installation
composer require adachsoft/ai-integration-moonshot
Usage
use AdachSoft\AiIntegration\ToolCalling\ToolCallingChatFacadeBuilder;
use AdachSoft\AiIntegrationMoonshot\MoonshotProvider;
$builder = ToolCallingChatFacadeBuilder::create();
MoonshotProvider::register($builder, getenv('MOONSHOT_API_KEY'));
$facade = $builder->build();
// Use $facade with your ToolCallingChatRequest DTO where you select the model id.
Production test
To run the production test you need a valid Moonshot API key.
export MOONSHOT_API_KEY=your_api_key_here
# optionally override the default model
export MOONSHOT_MODEL=moonshot-v1-8k
vendor/bin/phpunit tests/Production/ToolCalling/MoonshotProviderProductionTest.php --group external