adachsoft/ai-integration-moonshot

Moonshot provider for adachsoft/ai-integration tool-calling API

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

pkg:composer/adachsoft/ai-integration-moonshot

0.1.1 2026-01-23 08:24 UTC

This package is not auto-updated.

Last update: 2026-01-24 05:38:05 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