> ## 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.fast_depends.library.model.CustomField

<h2 id="autogen.fast_depends.library.model.CustomField" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

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

```python theme={null}
CustomField(
    *,
    cast: bool = True,
    required: bool = True
)
```

Helper class that provides a standard way to create an ABC using
inheritance.

<b>Parameters:</b>

| Name       | Description                                 |
| ---------- | ------------------------------------------- |
| `cast`     | **Type:** bool<br /><br />**Default:** True |
| `required` | **Type:** bool<br /><br />**Default:** True |

### Instance Attributes

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

#### cast

<br />

<br />

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

#### field

<br />

<br />

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

#### param\_name

<br />

<br />

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

#### required

<br />

<br />

### Instance Methods

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

#### set\_param\_name

```python theme={null}
set_param_name(self: ~Cls, name: str) -> ~Cls
```

<b>Parameters:</b>

| Name   | Description   |
| ------ | ------------- |
| `name` | **Type:** str |

<br />

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

#### use

```python theme={null}
use(
    self,
    /,
    **kwargs: Any
) -> Dict[str, Any]
```

<b>Parameters:</b>

| Name       | Description   |
| ---------- | ------------- |
| `/`        |               |
| `**kwargs` | **Type:** Any |

<br />

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

#### use\_field

```python theme={null}
use_field(self, kwargs: Dict[str, Any]) -> None
```

<b>Parameters:</b>

| Name     | Description               |
| -------- | ------------------------- |
| `kwargs` | **Type:** Dict\[str, Any] |

<br />
