> ## 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.

# fetch • AI Agent SDK

> fetch: API reference for GitRemoteSkillSource.fetch

# fetch

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

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

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def fetch(cache_dir: Path) -> List[Path]
```

## Parameters

<ParamField query="cache_dir" type="Path" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="List[Path]">
  The result of the operation.
</ResponseField>

## Uses

* `base.mkdir`
* `tempfile.mkdtemp`
* `Path`
* `subprocess.run`
* `logger.warning`
* `versioned.exists`
* `shutil.rmtree`
* `current.exists`

## Used By

* [`fetch_remote_skill_dirs`](../functions/fetch_remote_skill_dirs)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/skills/remote.py#L80">
  `praisonaiagents/skills/remote.py` at line 80
</Card>
