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

# autogen.tools.Depends

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### Depends

```python theme={null}
Depends(x: Any) -> Any
```

Creates a dependency for injection based on the provided context or type.<br />

<b>Parameters:</b>

| Name | Description                                                        |
| ---- | ------------------------------------------------------------------ |
| `x`  | The context or dependency to be injected.<br /><br />**Type:** Any |

<b>Returns:</b>

| Type | Description                                                          |
| ---- | -------------------------------------------------------------------- |
| Any  | A FastDepends object that will resolve the dependency for injection. |

<br />
