mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-10 21:47:21 +00:00
17 lines
432 B
C#
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; }
|
||
|
|
}
|