mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +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>
|
||
|---|---|---|
| .. | ||
| dist | ||
| litellm_proxy_extras | ||
| tests | ||
| build_and_publish.md | ||
| LICENSE | ||
| migration_runbook.md | ||
| pyproject.toml | ||
| README.md | ||
Additional files for the proxy. Reduces the size of the main litellm package.
Currently, only stores the migration.sql files for litellm-proxy.
To install, run:
uv add litellm-proxy-extras
OR
uv tool install 'litellm[proxy]' # installs litellm-proxy-extras and other proxy dependencies
To use the migrations, run:
litellm --use_prisma_migrate