mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +00:00
feat(v2 managed agents): add abort method to SandboxAdapter Protocol
This commit is contained in:
parent
fbd73ff970
commit
7e077657fc
1 changed files with 14 additions and 0 deletions
|
|
@ -103,3 +103,17 @@ class SandboxAdapter(Protocol):
|
|||
teardown is also enforced by idle/timeout in the provider.
|
||||
"""
|
||||
...
|
||||
|
||||
async def abort(
|
||||
self,
|
||||
sandbox_url: str,
|
||||
opencode_session_id: str,
|
||||
) -> None:
|
||||
"""Abort the in-flight turn for a session.
|
||||
|
||||
Translates to `POST <sandbox_url>/session/<oc_sid>/abort` for the
|
||||
opencode adapter (empty body). Best-effort: any non-2xx response
|
||||
from the provider is swallowed (the session may already be done).
|
||||
Raises `SandboxUnreachableError` only on connect/timeout failure.
|
||||
"""
|
||||
...
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue