mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-12 00:36:03 +00:00
feat(box): add sandbox_exec tool loop for local-agent calculations
This commit is contained in:
17
src/langbot/pkg/box/errors.py
Normal file
17
src/langbot/pkg/box/errors.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
class BoxError(RuntimeError):
|
||||
"""Base error for LangBot Box failures."""
|
||||
|
||||
|
||||
class BoxValidationError(BoxError):
|
||||
"""Raised when sandbox_exec arguments are invalid."""
|
||||
|
||||
|
||||
class BoxBackendUnavailableError(BoxError):
|
||||
"""Raised when no supported container backend is available."""
|
||||
|
||||
|
||||
class BoxSessionConflictError(BoxError):
|
||||
"""Raised when an existing session cannot satisfy a new request."""
|
||||
Reference in New Issue
Block a user