Skip to content

angee.agents_runtime_pydantic.providers

Bind an Angee inference backend to the pydantic-ai model that speaks its protocol.

The runtime owns pydantic-ai, so the protocol → Model class table lives here. The protocol is not decided here: each backend declares it as chat_api (angee.agents.backends.ChatAPI), so a backend that inherits an OpenAI-compatible protocol from its base class needs no entry of its own. Vendor request quirks stay with the vendor backend — they ride the SDK client it hands over.

MODEL_BUILDERS

The pydantic-ai model each declared chat protocol resolves to.

model_for_agent

python
def model_for_agent(agent: Any) -> Any

Return the pydantic-ai model bound to agent's live credential.

Released under the AGPL-3.0 License.