Skip to content

Question about parameter's description in tools #392

Answered by StephenHodgson
arielsch74 asked this question in Q&A
Discussion options

You must be logged in to vote

There are attributes for defining function calls:

internal static class WeatherService
{
internal enum WeatherUnit
{
Celsius,
Fahrenheit
}
[Function("Get the current weather in a given location.")]
public static async Task<string> GetCurrentWeatherAsync(
[FunctionParameter("The location the user is currently in.")] string location,
[FunctionParameter("The units the user has requested temperature in. Typically this is based on the users location.")] WeatherUnit unit)
{
var temp = new Random().Next(10, 40);
temp = unit

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@arielsch74
Comment options

@StephenHodgson
Comment options

Answer selected by arielsch74
@arielsch74
Comment options

@StephenHodgson
Comment options

Comment options

You must be logged in to vote
2 replies
@StephenHodgson
Comment options

@arielsch74
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants