usingvarclient=GetAuthenticatedOpenAiClient();Meai.IChatClientchatClient=client;vartool=Meai.AIFunctionFactory.Create((stringcity)=>cityswitch{"Paris"=>"22°C, sunny","London"=>"15°C, cloudy",_=>"Unknown",},name:"GetWeather",description:"Gets the current weather for a city");varresponse=awaitchatClient.GetResponseAsync([new Meai.ChatMessage(Meai.ChatRole.User, "What's the weather in Paris?")],newMeai.ChatOptions{ModelId=DeepInfraModel,Tools=[tool],});varfunctionCall=response.Messages.SelectMany(m=>m.Contents).OfType<Meai.FunctionCallContent>().FirstOrDefault();Console.WriteLine($"Tool call: {functionCall.Name}({string.Join(",", functionCall.Arguments?.Select(kv => $"{kv.Key}={kv.Value}") ?? [])})");