setup_context_variables

setup_context_variables(
    tool_execution: ConversableAgent,
    agents: list['ConversableAgent'],
    manager: GroupChatManager,
    context_variables: ContextVariables
) -> 

Assign a common context_variables reference to all agents in the group, including the tool executor and group chat manager.

Parameters:
NameDescription
tool_executionThe tool execution agent.

Type: ConversableAgent
agentsList of all agents in the conversation.

Type: list[‘ConversableAgent’]
managerGroupChatManager instance.

Type: GroupChatManager
context_variablesContext variables to assign to all agents.

Type: ContextVariables