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

Method

> This is a method of the [**GitRemoteSkillSource**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/GitRemoteSkillSource.md) class in the [**remote**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/remote.md) module.

## Signature

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

## Parameters

**cache\_dir** `Path` *required*

No description available.

### Returns

**Returns** `List[Path]`

The result of the operation.

## 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] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/skills/remote.py#L82)
>
> `praisonaiagents/skills/remote.py` at line 82


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.