mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
24 lines
819 B
C#
24 lines
819 B
C#
using System.Text.Json.Serialization;
|
|
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
|
|
|
|
namespace Models;
|
|
|
|
#pragma warning disable CA1812
|
|
internal class ExecuteFunctionRequest
|
|
{
|
|
[JsonPropertyName("variables")]
|
|
[OpenApiProperty(Description = "The variables to pass to the semantic function.")]
|
|
public IEnumerable<ExecuteFunctionVariable> Variables { get; set; } = Enumerable.Empty<ExecuteFunctionVariable>();
|
|
}
|
|
|
|
internal class ExecuteFunctionVariable
|
|
{
|
|
[JsonPropertyName("key")]
|
|
[OpenApiProperty(Description = "The variable key.", Default = "input")]
|
|
public string Key { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("value")]
|
|
[OpenApiProperty(Description = "The variable value.", Default = "Late for school")]
|
|
public string Value { get; set; } = string.Empty;
|
|
}
|