You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

FunctionTests.CreateGetWeatherFunctionFromAIFunctionFactoryAsync.approved.txt 1.4 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. [
  2. {
  3. "Kind": 0,
  4. "FunctionName": "GetWeather",
  5. "FunctionDescription": "get weather",
  6. "FunctionParameters": {
  7. "type": "object",
  8. "properties": {
  9. "city": {
  10. "type": "string"
  11. },
  12. "date": {
  13. "type": "string"
  14. }
  15. },
  16. "required": [
  17. "city"
  18. ]
  19. }
  20. },
  21. {
  22. "Kind": 0,
  23. "FunctionName": "GetWeatherStatic",
  24. "FunctionDescription": "get weather from static method",
  25. "FunctionParameters": {
  26. "type": "object",
  27. "properties": {
  28. "city": {
  29. "type": "string"
  30. },
  31. "date": {
  32. "type": "array",
  33. "items": {
  34. "type": "string"
  35. }
  36. }
  37. },
  38. "required": [
  39. "city",
  40. "date"
  41. ]
  42. }
  43. },
  44. {
  45. "Kind": 0,
  46. "FunctionName": "GetWeather",
  47. "FunctionDescription": "get weather from async method",
  48. "FunctionParameters": {
  49. "type": "object",
  50. "properties": {
  51. "city": {
  52. "type": "string"
  53. }
  54. },
  55. "required": [
  56. "city"
  57. ]
  58. }
  59. },
  60. {
  61. "Kind": 0,
  62. "FunctionName": "GetWeatherAsyncStatic",
  63. "FunctionDescription": "get weather from async static method",
  64. "FunctionParameters": {
  65. "type": "object",
  66. "properties": {
  67. "city": {
  68. "type": "string"
  69. }
  70. },
  71. "required": [
  72. "city"
  73. ]
  74. }
  75. }
  76. ]