Skip to content

v0.9

Choose a tag to compare

@MarcelloDuarte MarcelloDuarte released this 07 Mar 22:35
· 17 commits to main since this release

Changes in this release

  • AgentBuilder — fluent builder API: Agent::build()->provider($p)->model($m)->tools([...])->middleware([...])->create()
  • Exception hierarchy:
    • PapiException — base exception for all PapiAI errors
    • ProviderException — provider errors with status code and response body
    • RateLimitException — rate limit errors with optional retry-after
    • AuthenticationException — authentication failures
  • CostEstimate — value object for estimating API call costs from token usage and model pricing
  • 183 tests, 0 psalm errors