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

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

#### get\_context\_params

```python theme={null}
get_context_params(func: Callable[..., Any], subclass: type[BaseContext] | type[ChatContext]) -> list[str]
```

Gets the names of the context parameters in a function signature.<br />

<b>Parameters:</b>

| Name       | Description                                                                                                                                                                                 |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `func`     | The function to inspect for context parameters.<br /><br />**Type:** Callable\[..., Any]                                                                                                    |
| `subclass` | The subclass to search for.<br /><br />**Type:** type\[[BaseContext](/docs/api-reference/autogen/tools/BaseContext)] \| type\[[ChatContext](/docs/api-reference/autogen/tools/ChatContext)] |

<b>Returns:</b>

| Type       | Description                                                             |
| ---------- | ----------------------------------------------------------------------- |
| list\[str] | A list of parameter names that are instances of the specified subclass. |

<br />
