Highlights
- Agent builder and capability namespaces are reorganized into
Cognesy\Addons\AgentBuilder\*, with agent templates inCognesy\Addons\AgentTemplate\*. - Structured extraction is reworked with
ExtractionInput,ResponseContent, and streaming-friendlyExtractingBuffer+PartialJsonExtractor. - Hub example discovery now supports configurable sources and grouping via YAML config files.
Breaking Changes
- Agent builder, capabilities, and tool registry classes moved from
Cognesy\Addons\Agent\*toCognesy\Addons\AgentBuilder\*. - Agent template definitions, registries, and blueprints moved to
Cognesy\Addons\AgentTemplate\*;AgentContractis nowAgentInterfaceandfromConfig()returns anAgentInterface(noResultwrapper). - Task planning capability (
UseTaskPlanning,Todo*classes) andLlmQueryToolwere removed. - Instructor extraction contracts changed:
CanExtractResponse::extract()now acceptsExtractionInputand returns an array, throwing on failure.CanExtractContent,CanParseContent,DataFormat,JsonParser, andExtractingJsonBufferwere removed.
Addons / Agents
- Agent builder moved to
Cognesy\Addons\AgentBuilder\AgentBuilderwith capabilities underCognesy\Addons\AgentBuilder\Capabilities\*. - New
SubagentProvider/SubagentDefinitioncontracts andEmptySubagentProvider;AgentTemplate\Registry\AgentRegistryimplementsSubagentProvider. - Agent template registry and definition flow now live under
Cognesy\Addons\AgentTemplate\*with explicit blueprint exceptions.
Instructor
ResponseExtractornow consumesExtractionInputand usesResponseContentfor tool-mode extraction.- Streaming extraction uses
ExtractingBufferandPartialJsonExtractorfor more resilient partial JSON handling.
Hub
- Example sources can be configured via
config/examples.yaml(multiple source roots supported). - Example grouping and ordering can be configured via
config/examples-groups.yaml(subgroup include/exclude rules).
Migration from v1.21.0
- Update imports to
Cognesy\Addons\AgentBuilder\*(includingAgentBuilder, allCapabilities, andCapabilities\Tools). - Move agent templates and registries to
Cognesy\Addons\AgentTemplate\*and updateAgentContractimplementations toAgentBuilder\Contracts\AgentInterfacewithfromConfig()returning anAgentInterface. - Remove task planning usage (
UseTaskPlanning,Todo*) andLlmQueryToolreferences; replace with custom tools or direct inference calls. - Update custom extractors to
CanExtractResponse::extract(ExtractionInput $input): arrayand throwExtractionException(or anyThrowable); call withExtractionInput::fromResponse(...)orExtractionInput::fromContent(...). - Replace any direct usage of
ExtractingJsonBuffer/JsonParser/DataFormatwithExtractingBufferand the new extractor chain.