class documentation

Route a real-I/O backend's operations through Temporal activities.

Wrap a FilesystemBackend / LocalShellBackend / StoreBackend / CompositeBackend so each file or shell operation becomes a durable deepagents.backend_op activity instead of touching disk / shell from the workflow. State-only backends (StateBackend) need no wrapping — they are pure workflow state and run in-workflow.

Unknown attribute access is forwarded to the inner backend so backend metadata / configuration the agent reads (but that does no I/O) still works.

Method __getattr__ Bound-method access for a known I/O op returns an activity dispatcher.
Method __init__ Wrap inner so its I/O ops dispatch as durable activities.
Async Method _dispatch Undocumented
Instance Variable _finalizer Undocumented
Instance Variable _inner Undocumented
Instance Variable _opts Undocumented
Instance Variable _ref Undocumented
def __getattr__(self, name: str) -> Any: (source)

Bound-method access for a known I/O op returns an activity dispatcher.

Everything else forwards to the inner backend unchanged.

def __init__(self, inner: Any, *, activity_options: Mapping[str, Any] | None = None): (source)

Wrap inner so its I/O ops dispatch as durable activities.

async def _dispatch(self, op: str, *args: Any, **kwargs: Any) -> Any: (source)

Undocumented

_finalizer = (source)

Undocumented

Undocumented

_opts: dict[str, Any] = (source)

Undocumented

Undocumented