autogen/dotnet/test/AutoGen.Tests/Function/ApprovalTests/FunctionTests.CreateGetWeatherFunctionFromAIFunctionFactoryAsync.approved.txt
Xiaoyun Zhang 5e0b677acc
[.NET] Create tools from M.E.A.I AIFunctionFactory (#4041)
* add MEAI tool support

* fix format

* update

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-11-03 09:18:32 -08:00

76 lines
1.4 KiB
Plaintext

[
{
"Kind": 0,
"FunctionName": "GetWeather",
"FunctionDescription": "get weather",
"FunctionParameters": {
"type": "object",
"properties": {
"city": {
"type": "string"
},
"date": {
"type": "string"
}
},
"required": [
"city"
]
}
},
{
"Kind": 0,
"FunctionName": "GetWeatherStatic",
"FunctionDescription": "get weather from static method",
"FunctionParameters": {
"type": "object",
"properties": {
"city": {
"type": "string"
},
"date": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"city",
"date"
]
}
},
{
"Kind": 0,
"FunctionName": "GetWeather",
"FunctionDescription": "get weather from async method",
"FunctionParameters": {
"type": "object",
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
]
}
},
{
"Kind": 0,
"FunctionName": "GetWeatherAsyncStatic",
"FunctionDescription": "get weather from async static method",
"FunctionParameters": {
"type": "object",
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
]
}
}
]