cognesy/instructor-symfony
Composer 安装命令:
composer require cognesy/instructor-symfony
包简介
Batteries-included Symfony integration for Instructor PHP
README 文档
README
Batteries-included Symfony integration for InstructorPHP.
It is intended to become the first-party framework package for Symfony applications using:
- Instructor primitives
- Polyglot inference and embeddings
- native
Cognesy\Agents AgentCtrl- shared events, logging, and telemetry wiring
- testing helpers and Symfony-native bundle integration
The package is being introduced in phases.
The current baseline already includes the bundle surface, config translation, initial container bindings for core runtime services, the first AgentCtrl container/runtime adapters, native-agent registry/session wiring, and the initial Messenger delivery seam.
The current baseline also includes an explicit session-persistence seam under instructor.sessions, with built-in in-memory and file-backed storage paths for native agents.
Telemetry is now package-owned too: explicit exporter selection, projector composition, shared event-bus bridge wiring, and lifecycle cleanup for HTTP, console, and Messenger worker contexts all live under instructor.telemetry.
Later tasks will expand broader testing and the migration path.
Planned Surface
- bundle entrypoint under
Cognesy\Instructor\Symfony\ - one public
instructorconfig root with explicit subtrees - framework-owned integration for core runtime services, agents, observability, and testing
Current Container Entry Points
The package now registers the initial core contracts and developer-facing services:
Cognesy\Config\Contracts\CanProvideConfigCognesy\Http\Contracts\CanSendHttpRequestsCognesy\Instructor\Symfony\AgentCtrl\SymfonyAgentCtrlCognesy\Instructor\Symfony\AgentCtrl\SymfonyAgentCtrlRuntimesCognesy\Polyglot\Inference\Contracts\CanCreateInferenceCognesy\Polyglot\Embeddings\Contracts\CanCreateEmbeddingsCognesy\Instructor\Contracts\CanCreateStructuredOutputCognesy\Instructor\Symfony\Delivery\Messenger\ExecuteAgentCtrlPromptMessageHandlerCognesy\Instructor\Symfony\Delivery\Messenger\ExecuteNativeAgentPromptMessageHandlerCognesy\Polyglot\Inference\InferenceCognesy\Polyglot\Embeddings\EmbeddingsCognesy\Instructor\StructuredOutput
The AgentCtrl runtime layer now includes context-aware cli, http, and messenger adapters plus typed continuation and handoff references.
The package also exposes explicit Messenger message and handler seams for queued AgentCtrl prompts, queued native-agent prompts, and opt-in runtime observation forwarding.
Native agent tools, capabilities, AgentDefinition services, and SchemaRegistration services now autoconfigure into the package-owned registries, while manual AgentRegistryTags::* tags remain available for explicit overrides.
Ownership boundaries:
packages/symfonyowns Symfony bundle registration, config normalization, service wiring, and framework defaultspackages/eventscontinues to own reusable event-dispatch primitives such as the raw Symfony bridgepackages/loggingcontinues to own reusable logging primitives, while the Symfony-facing logging bundle path is planned to migrate behindpackages/symfony
Documentation
packages/symfony/docs/overview.mdpackages/symfony/docs/configuration.mdpackages/symfony/docs/runtime-surfaces.mdpackages/symfony/docs/sessions.mdpackages/symfony/docs/testing.mdpackages/symfony/docs/telemetry.mdpackages/symfony/docs/quickstart.mdpackages/symfony/docs/logging.mdpackages/symfony/docs/delivery.mdpackages/symfony/docs/operations.mdpackages/symfony/docs/migration.mdpackages/symfony/CHEATSHEET.md
Distribution Readiness
The split-workflow matrix is now generated with packages/symfony included.
Remaining bootstrap steps outside this package task:
- Create the split repository
cognesy/instructor-symfony. - Let the split workflow populate the repository, or bootstrap it manually if publication is needed immediately.
- Verify the split repo
mainbranch contains at leastcomposer.json,src/, andREADME.md. - Submit the split repository to Packagist.
- Verify Packagist metadata and package resolution endpoints after submission.
cognesy/instructor-symfony 适用场景与选型建议
cognesy/instructor-symfony 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「logging」 「symfony」 「agents」 「ai」 「telemetry」 「llm」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cognesy/instructor-symfony 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cognesy/instructor-symfony 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cognesy/instructor-symfony 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The bundle for easy using json-rpc api on your project
A Zend Framework module that sets up Monolog for logging in applications.
Asynchronous Sentry for Symfony - Fire and forget
Stackdriver handler for Monolog (codeinternetapplications/monolog-stackdriver Fork).
High-performance, zero-dependency PSR-3 logger for MonkeysLegion with structured logging, handlers, processors, and PHP 8.4 features.
Bundle Symfony DaplosBundle
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-30