Skip to content

0.2.12

Choose a tag to compare

@DEENUU1 DEENUU1 released this 12 Jun 17:55
· 8 commits to main since this release

[0.2.12] - 2026-06-12

Added

  • KubernetesPodSandbox — run the agent's shell tools inside a Kubernetes pod (#46) (src/pydantic_ai_backends/backends/kubernetes.py). A new BaseSandbox implementation with synchronous methods (matching DockerSandbox/DaytonaSandbox), usable as a drop-in for any SessionManager consumer. start() creates the pod and waits for it to become Ready; stop() deletes it. Two execution modes:

    • mode="http" (default) talks to an in-pod HTTP exec server on port — recommended for long-running tool calls (npm install, headless browser, MCP servers).
    • mode="api" uses the K8s pods/exec subresource (needs pods/exec RBAC on the caller; fine for short commands). Requires /bin/sh and a timeout binary in the image.

    Exported as KubernetesPodSandbox from the package root (lazy import; requires the optional kubernetes extra).