mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
Adds the full v1 managed_agents stack under
`/v1/managed_agents/*`:
- Sandbox templates: `POST/GET/DELETE /v1/managed_agents/sandbox-templates`
Builds a Docker harness, pushes to ECR, registers a Fargate task definition.
- Agents: `POST/GET /v1/managed_agents/agents` with model + prompt + branch
override.
- Sessions: `POST /v1/managed_agents/agents/{id}/session`,
`GET/DELETE /v1/managed_agents/sessions/{id}`. Spawns a Fargate task,
waits for ready, seeds the harness chat session (and optional first
prompt) in one call.
- Passthrough: `POST /v1/managed_agents/sessions/{id}/message`,
SSE `/events`, raw `/raw/{path}` for direct opencode access.
Includes:
* Prisma schema for `LiteLLM_ManagedAgent{SandboxTemplate,,Session}Table`
plus migrations under litellm-proxy-extras.
* Background reconciler that stops orphaned Fargate tasks every 60s,
wired into proxy_server lifespan.
* Sample opencode Dockerfile + entrypoint under
`managed_agents_endpoints/sample_harnesses/opencode/`.
* Unit tests for templates, agents, sessions, lifecycle, bootstrap,
git validation, and dockerfile registry.
Schema-validated end-to-end against a real Postgres instance (round-trip
create→include→update→delete). All 60 unit tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| migrations | ||
| __init__.py | ||
| _logging.py | ||
| schema.prisma | ||
| utils.py | ||