contains • AI Agent SDK
contains: Check if a path is contained within this workspace.
contains
Method
</div>
This is a method of the Workspace class in the workspace module.
Check if a path is contained within this workspace.
Signature
def contains(path: str | Path) -> boolParameters
ParamField
str \| PathPath to check (string or Path object)
Returns
ResponseField
boolTrue if path is within workspace boundaries
Uses
resolve
Source
View on GitHubpraisonaiagents/workspace/__init__.py at line 53