octoryn / sdk
Governed AI SDK for Octoryn Router
v0.1.0
2026-07-31 05:29 UTC
Requires
- php: ^8.2
- guzzlehttp/guzzle: ^7.9
- opis/json-schema: ^2.4
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-10-10 05:16:40 UTC
README
Governed model access for PHP 8.2 and later.
Install the tagged public release from Packagist:
composer require octoryn/sdk:^0.1
$client = new Octoryn\Client(getenv('OCTORYN_API_KEY')); $result = $client->generateText([ 'model' => 'openai/gpt-4.1-mini', 'prompt' => 'Explain this routing decision.', ]); echo $result->octoryn->evidenceHash;
The SDK supports text generation, replayable SSE streams, split tool calls, raw JSON Schema validation for Structured Outputs, normalized API errors, cancellation and Octoryn governance metadata.