Download the PHP package cognesy/agents without Composer
On this page you can find all versions of the php package cognesy/agents. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cognesy/agents
More information about cognesy/agents
Files in cognesy/agents
Package agents
Short Description SDK for building custom AI agents
License MIT
Homepage https://instructorphp.com
Informations about the package agents
Instructor Agents
SDK for building composable AI agents in PHP.
This package provides:
AgentLoopfor step-based agent execution- tools and tool execution runtime
- hooks/guards for lifecycle control
AgentBuildercapabilities for composition- templates and session runtime for persisted workflows
This package is a split from the Instructor PHP monorepo.
Installation
Minimal Example
Coding Agent
UseCodingTools installs the provider-familiar read, bash, edit, and
write tool names. UseSystemPrompt derives matching operating guidance from
the tools resolved into the built agent.
The deprecated CodingAgentPrompt preserves its static 2.5 coding prompt for
compatibility. New agents should use UseSystemPrompt, which derives tool and
guideline sections from the tools installed on the built agent.
The file contracts are deliberately bounded and conservative:
readdefaults to a numbered 200-line/32 KiB window and returns an exact continuation hint. Agents can explicitly increaselimitandmax_byteswhen a larger window or complete file is justified.editstreams through the source and atomically commits only after exact match validation succeeds.writecreates a new file atomically, requires an existing parent directory, and refuses to replace different content.bashreturns at most a 32 KiB window and explains how to recover from larger output.
Legacy UseFileTools remains available with the existing read_file,
edit_file, and write_file names.
Documentation
Use the Agents docs for actual usage and architecture details:
packages/agents/docs/01-introduction.mdpackages/agents/docs/02-basic-agent.mdpackages/agents/docs/05-tools.mdpackages/agents/docs/13-agent-builder.mdpackages/agents/docs/14-agent-templates.mdpackages/agents/docs/16-session-runtime.md
All versions of agents with dependencies
composer-runtime-api Version ^2.0
cognesy/instructor-contracts Version ^2.9
cognesy/instructor-metrics Version ^2.9
ext-fileinfo Version *
ext-libxml Version *
cognesy/instructor-dynamic Version ^2.9
cognesy/instructor-events Version ^2.9
cognesy/instructor-http-client Version ^2.9
cognesy/logging Version ^2.3
cognesy/instructor-messages Version ^2.9
cognesy/instructor-polyglot Version ^2.9
cognesy/instructor-sandbox Version ^2.9
cognesy/instructor-schema Version ^2.9
cognesy/instructor-struct Version ^2.9
cognesy/instructor-telemetry Version ^2.9
cognesy/instructor-utils Version ^2.9
cognesy/xprompt Version ^2.8
symfony/yaml Version ^7.0 || ^8.0
twig/twig Version ^3.0