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

19 lines
473 B
C#
Raw Normal View History

2026-09-04 15:48:07 +02:00
using System.Text.Json;
namespace AIStudio.Provider.OpenAI;
/// <summary>
/// The flat function tool definition shape expected by the OpenAI Responses API.
/// </summary>
public sealed record ResponsesFunctionTool
{
public string Type { get; set; } = "function";
2026-09-04 15:48:07 +02:00
public string Name { get; set; } = string.Empty;
2026-09-04 15:48:07 +02:00
public string Description { get; set; } = string.Empty;
2026-09-04 15:48:07 +02:00
public JsonElement Parameters { get; set; }
2026-09-04 15:48:07 +02:00
public bool Strict { get; set; }
2026-09-04 15:48:07 +02:00
}