Workspace • AI Agent SDK

Workspace: Workspace configuration for agent operations.

Workspace

Defined in the workspace module.

AI Agent

Workspace configuration for agent operations.

Provides path containment and access control for file operations, ensuring agents can only access files within their designated workspace.

Attributes: root: Absolute path to workspace directory (must exist, refuses “/”) access: Access mode (“rw” = read-write, “ro” = read-only, “none” = copy-on-write sandbox) scope: Workspace scope level (“shared”, “session”, “user”, “agent”) session_key: Optional session identifier for scope resolution

Properties

ResponseField Path

No description available.

ResponseField WorkspaceAccess

No description available.

ResponseField WorkspaceScope

No description available.

ResponseField Optional[str]

No description available.

Methods

Source

View on GitHub

praisonaiagents/workspace/__init__.py at line 18