Skip to main content
The PHP Agent SDK is a minimal local runtime for AI Stats Gateway. Use it when you want:
  • a lightweight bounded tool loop
  • gateway-backed responses requests
  • app-owned control over persistence and orchestration

What it ships

  • AgentSdk::createAgent(...)
  • AgentSdk::defineTool(...)
  • AgentSdk::createGatewayAgentClient(...)
  • a bounded tool loop over the AI Stats responses API

Next

Last modified on May 19, 2026