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
|
|
|
|
|
{
|
2026-11-03 07:59:30 +01:00
|
|
|
public string Type { get; set; } = "function";
|
2026-09-04 15:48:07 +02:00
|
|
|
|
2026-11-03 07:59:30 +01:00
|
|
|
public string Name { get; set; } = string.Empty;
|
2026-09-04 15:48:07 +02:00
|
|
|
|
2026-11-03 07:59:30 +01:00
|
|
|
public string Description { get; set; } = string.Empty;
|
2026-09-04 15:48:07 +02:00
|
|
|
|
2026-11-03 07:59:30 +01:00
|
|
|
public JsonElement Parameters { get; set; }
|
2026-09-04 15:48:07 +02:00
|
|
|
|
2026-11-03 07:59:30 +01:00
|
|
|
public bool Strict { get; set; }
|
2026-09-04 15:48:07 +02:00
|
|
|
}
|