def greet(context_variables, language): user_name = context_variables["user_name"] greeting = "Hola" if language.lower() == "spanish" else "Hello" print(f"{greeting}, {user_name}!") return "Done" agent = Agent( functions=[print_hello] ) client.run( agent=agent, messages=[{"role": "user", "content": "Usa greet() por favor."}], context_variables={"user_name": "John"} )