// Copyright (c) Microsoft Corporation. All rights reserved.
// Functions.cs
using AutoGen.Core;
namespace AutoGen.Gemini.Tests;
public partial class Functions
{
///
/// Get weather for a city.
///
/// city
/// weather
[Function]
public async Task GetWeatherAsync(string city)
{
return await Task.FromResult($"The weather in {city} is sunny.");
}
[Function]
public async Task GetMovies(string location, string description)
{
var movies = new List { "Barbie", "Spiderman", "Batman" };
return await Task.FromResult($"Movies playing in {location} based on {description} are: {string.Join(", ", movies)}");
}
}