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
v0.2.0
2026-03-09 14:28 UTC
Requires
- php: ^8.3
- adachsoft/ai-integration: ^0.6
Requires (Dev)
- adachsoft/php-code-style: ^0.4
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^12.4
- rector/rector: ^2.0
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