AI-Studio/app/MindWork AI Studio/Provider/OpenAI/AssistantToolCallMessage.cs
Peer Schütt ead156ac4d Set parallel_tool_calls to false in chat completions, because AI Studio calls all tools sequentially at the moment.
Also fixed a bug that resulted in an error when using tools with Mistral API
2026-07-23 17:01:46 +02:00

17 lines
457 B
C#

using System.Text.Json;
using System.Text.Json.Serialization;
namespace AIStudio.Provider.OpenAI;
public sealed record AssistantToolCallMessage : IMessageBase
{
public string Role { get; init; } = "assistant";
public JsonElement? Content { get; init; }
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ReasoningContent { get; init; }
public IList<ChatCompletionToolCall> ToolCalls { get; init; } = [];
}