cognesy/instructor-laravel
Composer 安装命令:
composer require cognesy/instructor-laravel
包简介
Laravel integration for Instructor PHP - Structured LLM outputs made simple
关键字:
README 文档
README
Laravel integration for InstructorPHP.
It provides:
- Laravel service provider and config
- Facades for
StructuredOutput,Inference,Embeddings, andAgentCtrl - Laravel-specific HTTP client and HTTP pool drivers
- a Laravel-bound
CanSendHttpRequeststransport implementation - native
Cognesy\Agentscontainer bindings, registry loading, and session runtime - database-backed native agent sessions, broadcasting helpers, telemetry wiring, and logging presets
- testing fakes for facade-based tests and Laravel-native helper utilities for native agents
- Artisan commands for install, smoke-test, and response-model scaffolding
The package now treats native Cognesy\\Agents runtime configuration and AgentCtrl
code-agent execution as separate Laravel surfaces:
agentsis reserved for native agent runtime integrationagent_ctrlconfigures CLI code agents exposed through theAgentCtrlfacadetelemetryis the first-class config namespace for Laravel telemetry wiring
Example
<?php use App\ResponseModels\PersonData; use Cognesy\Instructor\Laravel\Facades\StructuredOutput; $person = StructuredOutput::with( messages: 'John Smith is 30 years old', responseModel: PersonData::class, )->get();
Documentation
packages/laravel/docs/index.mdpackages/laravel/CHEATSHEET.md
统计信息
- 总下载量: 51
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-29