# GitSubdirectoryPluginSource

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/plugins/models/GitSubdirectoryPluginSource)

A plugin sourced from a subdirectory in a Git repository.

## Signature

```python
GitSubdirectoryPluginSource(
    self,
    *,
    source_type: Literal['git-subdir'],
    url: str,
    ref: str | None = None,
    path: str | None = None,
)
```

## Constructors

```python
__init__(
    self,
    *,
    source_type: Literal['git-subdir'],
    url: str,
    ref: str | None = None,
    path: str | None = None,
) -> None
```

| Name | Type |
|------|------|
| `source_type` | `Literal['git-subdir']` |
| `url` | `str` |
| `ref` | `str \| None` |
| `path` | `str \| None` |


## Properties

- `source_type`
- `url`
- `ref`
- `path`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/plugins/models.py#L150)