Skip to content
docsv0.1.0

Milpa AI Gateway v0.1.0

A dual-provider LLM gateway for Milpa — OpenAI and Anthropic chat completions behind one client, with tool-call format translation both ways, plus an agentic tool-use loop that drives a milpa/tool-runtime ToolRegistry until the model is done.

Modules declare the capabilities they provide and require, expose tools an agent can invoke, and gate mutating actions behind verification. The contract loop that runs through the whole system:

plugin → capability → tool → verification → event → result

installbash
composer require milpa/ai-gateway

API reference

3 public types across 1 namespaces — every symbol carries a DocBlock, and this reference is generated straight from them.

AiGateway 3