> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# resolve • AI Agent SDK

> resolve: Resolve a path against the workspace root with security checks.

# resolve

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**Workspace**](../classes/Workspace) class in the [**workspace**](../modules/workspace) module.

Resolve a path against the workspace root with security checks.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def resolve(path: str | Path) -> Path
```

## Parameters

<ParamField query="path" type="str \| Path" required={true}>
  Relative or absolute path to resolve
</ParamField>

### Returns

<ResponseField name="Returns" type="Path">
  Absolute path within workspace
</ResponseField>

### Exceptions

<AccordionGroup>
  <Accordion title="ValueError">
    If path escapes workspace or contains traversal attempts
  </Accordion>
</AccordionGroup>

## Uses

* `Path`
* `has_traversal_component`
* `ValueError`
* `path.is_absolute`
* `path.resolve`
* `resolve`
* `resolved.relative_to`

## Used By

* [`Agent.skill_manager`](../functions/Agent-skill_manager)
* [`resolve_memory`](../functions/resolve_memory)
* [`resolve_knowledge`](../functions/resolve_knowledge)
* [`resolve_output`](../functions/resolve_output)
* [`resolve_execution`](../functions/resolve_execution)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/workspace/__init__.py#L68">
  `praisonaiagents/workspace/__init__.py` at line 68
</Card>
