> ## Documentation Index
> Fetch the complete documentation index at: https://private-04b27de1.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.coding.func_with_reqs.to_stub

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

#### to\_stub

```python theme={null}
to_stub(func: Callable[..., Any] | FunctionWithRequirementsStr) -> str
```

Generate a stub for a function as a string

<b>Parameters:</b>

| Name   | Description                                                                                                                                                                                  |
| ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `func` | The function to generate a stub for<br /><br />**Type:** Callable\[..., Any] \| [FunctionWithRequirementsStr](/docs/api-reference/autogen/coding/func_with_reqs/FunctionWithRequirementsStr) |

<b>Returns:</b>

| Type | Description                    |
| ---- | ------------------------------ |
| str  | str: The stub for the function |

<br />
