workspace • AI Agent SDK
Workspace management for PraisonAI agents.
workspace
AI Agent
Workspace management for PraisonAI agents.
This module provides workspace isolation and security for agent operations, particularly for bots and gateways that need to scope file operations to specific directories.
Import
from praisonaiagents import workspaceClasses
Functions
validate_within_dir()
Validate that a path is contained within an allowed root directory.
has_traversal_component()Check if a path contains directory traversal components.
Constants
| Name | Value |
|---|---|
_LAZY_ISOLATION | {'WorkspaceIsolationProtocol': ('protocols', 'WorkspaceIsolationProtocol'), 'NoIsolationAdapter': ('adapters', 'NoIsolationAdapter'), 'GitWorktreeAdapter': ('adapters', 'GitWorktreeAdapter')} |