update_conditional_functions

update_conditional_functions(agent: ConversableAgent, messages: list[dict[str, Any]]) -> 
Updates the agent’s functions based on the OnCondition’s available condition.
All functions are removed and then added back if they are available
Parameters:
NameDescription
agentType: ConversableAgent
messagesType: list[dict[str, typing.Any]]