> ## 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.core.build_call_model

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

#### build\_call\_model

```python theme={null}
build_call_model(
    call: Callable[~P, ~T] | Callable[~P, Awaitable[~T]],
    *,
    cast: bool = True,
    use_cache: bool = True,
    is_sync: bool | None = None,
    extra_dependencies: Sequence[Depends] = (),
    pydantic_config: ConfigDict | None = None
) -> CallModel[~P, ~T]
```

<b>Parameters:</b>

| Name                 | Description                                                                                                                    |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `call`               | **Type:** Callable\[\~P, \~T] \| Callable\[\~P, Awaitable\[\~T]]                                                               |
| `cast`               | **Type:** bool<br /><br />**Default:** True                                                                                    |
| `use_cache`          | **Type:** bool<br /><br />**Default:** True                                                                                    |
| `is_sync`            | **Type:** bool \| None<br /><br />**Default:** None                                                                            |
| `extra_dependencies` | **Type:** Sequence\[[Depends](/docs/api-reference/autogen/fast_depends/dependencies/model/Depends)]<br /><br />**Default:** () |
| `pydantic_config`    | **Type:** pydantic.config.ConfigDict \| None<br /><br />**Default:** None                                                      |

<br />
