Skip to main content

Release Notes - v1.16.0

New Features

OutputFormat API

Control output format independently from schema:

Pluggable Extraction

Custom JSON extraction strategies:
Built-in extractors:
  • DirectJsonExtractor - Parse as-is
  • ResilientJsonExtractor - Handle malformed JSON
  • MarkdownBlockExtractor - Extract from code blocks
  • BracketMatchingExtractor - Find first { to last }
  • SmartBraceExtractor - Handle escaped quotes

Extraction Events

Track extraction lifecycle:
  • ExtractionStarted
  • ExtractionStrategyAttempted
  • ExtractionStrategySucceeded
  • ExtractionStrategyFailed
  • ExtractionCompleted
  • ExtractionFailed

Manual Schema Support

JSON schemas no longer require x-php-class:

Response Caching

Improvements

  • Simplified processing pipeline
  • Removed unused partial validations

Bug Fixes

  • Fixed withInput() to handle objects correctly
  • Fixed HostSandbox to run in baseDir (fixes CLI agents)
  • Fixed environment inheritance for agent execution
  • Fixed exit code propagation in examples
  • Resolved all PHPStan errors

New Package: metrics

Event-driven metrics collection system. Metric types:
  • Counter - incremental counts
  • Gauge - point-in-time values
  • Histogram - value distributions
  • Timer - duration measurements
Usage: