> ## 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.agentchat.group.group_utils.update_conditional_functions

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

#### update\_conditional\_functions

```python theme={null}
update_conditional_functions(agent: ConversableAgent, messages: list[dict[str, Any]]) -> 
```

Updates the agent's functions based on the OnCondition's available condition.<br />All functions are removed and then added back if they are available

<b>Parameters:</b>

| Name       | Description                             |
| ---------- | --------------------------------------- |
| `agent`    | **Type:** ConversableAgent              |
| `messages` | **Type:** list\[dict\[str, typing.Any]] |

<br />
