0.2.12
[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 newBaseSandboximplementation with synchronous methods (matchingDockerSandbox/DaytonaSandbox), usable as a drop-in for anySessionManagerconsumer.start()creates the pod and waits for it to becomeReady;stop()deletes it. Two execution modes:mode="http"(default) talks to an in-pod HTTP exec server onport— recommended for long-running tool calls (npm install, headless browser, MCP servers).mode="api"uses the K8spods/execsubresource (needspods/execRBAC on the caller; fine for short commands). Requires/bin/shand atimeoutbinary in the image.
Exported as
KubernetesPodSandboxfrom the package root (lazy import; requires the optionalkubernetesextra).