# internal/apr

This package tree is the landing zone for the APR-derived LLM proxy runtime core.

## Intent

We are porting APR's mature proxy/runtime implementation into AgentTeam server, while
keeping AgentTeam-specific concerns outside this subtree:

- AgentTeam org/workspace storage and admin UI
- AgentTeam-scoped proxy key auth
- daemon-facing unified `agentteam_proxy` provider semantics

## Boundary

`internal/apr/*` should contain the APR-style runtime core:

- provider interfaces and request/response transport contracts
- dispatcher and route/group fanout logic
- adapter / fallback / format-conversion handlers
- specialized provider implementations such as Codex and Copilot
- generic OpenAI-compatible forwarding through `agentteambridge`

AgentTeam-specific code should adapt into this runtime core, not fork its logic again.

## Migration rule

When in doubt, prefer transplanting APR core behavior here and integrating it via
adapters, with AgentTeam request handling now routed directly through the APR package.
