@@ -81,22 +81,22 @@ def create_agent(
8181 llm_tools : list [BaseTool ] = [* agent_tools , * flow_control_tools ]
8282
8383 # Derive client-side tool schemas from tools for input validation in the init node.
84- cs_tools : dict [str , ClientSideToolInfo ] | None = None
84+ conversational_client_side_tools : dict [str , ClientSideToolInfo ] | None = None
8585 if config .is_conversational :
86- cs_tools = {}
86+ conversational_client_side_tools = {}
8787 for t in agent_tools :
8888 meta = getattr (t , "metadata" , None ) or {}
8989 if meta .get (IS_CONVERSATIONAL_CLIENT_SIDE_TOOL ):
90- cs_tools [t .name ] = {
90+ conversational_client_side_tools [t .name ] = {
9191 "input_schema" : t .args_schema .model_json_schema ()
9292 if hasattr (t , "args_schema" ) and t .args_schema
9393 else None ,
9494 "output_schema" : meta .get ("output_schema" ),
9595 }
96- cs_tools = cs_tools or None
96+ conversational_client_side_tools = conversational_client_side_tools or None
9797
9898 init_node = create_init_node (
99- messages , input_schema , config .is_conversational , cs_tools
99+ messages , input_schema , config .is_conversational , conversational_client_side_tools
100100 )
101101
102102 tool_nodes = create_tool_node (agent_tools )
0 commit comments