Files
AI-Studio/app/MindWork AI Studio/Provider/OpenAI/ChatCompletionFunctionDeclaration.cs
T

17 lines
432 B
C#

using System.Text.Json;
namespace AIStudio.Provider.OpenAI;
/// <summary>
/// The function a tool of a Chat Completions compatible API offers to the model.
/// </summary>
public sealed record ChatCompletionFunctionDeclaration
{
public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public JsonElement Parameters { get; set; }
public bool Strict { get; set; }
}