Replaced the anonymous request shapes of the providers with records

This commit is contained in:
Thorsten Sommer committed 2026-11-02 18:47:27 +01:00
1 parent 9e5aee766c
commit 5d80d3894b
15 files changed
+111 -32

No files matched your search

@@ -0,0 +1,11 @@
namespace AIStudio.Provider.OpenAI;
/// <summary>
/// The function tool definition shape expected by Chat Completions compatible APIs, with the function nested.
/// </summary>
public sealed record ChatCompletionFunctionTool
{
public string Type { get; init; } = "function";
public ChatCompletionFunctionDeclaration Function { get; init; } = new();
}