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

<h2 id="autogen.coding.func_with_reqs.FunctionWithRequirementsStr" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

  <span class="doc doc-object-name doc-class-name">FunctionWithRequirementsStr</span>
</h2>

```python theme={null}
FunctionWithRequirementsStr(
    func: str,
    python_packages: list[str] = [],
    global_imports: list[str | ImportFromModule | Alias] = []
)
```

FunctionWithRequirementsStr(func: str, python\_packages: list\[str] = \[], global\_imports: list\[typing.Union\[str, autogen.coding.func\_with\_reqs.ImportFromModule, autogen.coding.func\_with\_reqs.Alias]] = \[])

<b>Parameters:</b>

| Name              | Description                                                                                                                                                                                                    |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `func`            | **Type:** str                                                                                                                                                                                                  |
| `python_packages` | **Type:** list\[str]<br /><br />**Default:** \[]                                                                                                                                                               |
| `global_imports`  | **Type:** list\[str \| [ImportFromModule](/docs/api-reference/autogen/coding/func_with_reqs/ImportFromModule) \| [Alias](/docs/api-reference/autogen/coding/func_with_reqs/Alias)]<br /><br />**Default:** \[] |

### Instance Attributes

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

#### func

<br />

<br />

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

#### global\_imports

<br />

<br />

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

#### python\_packages

<br />

<br />
