Import des bestehenden Projektstands in Git. - .NET 10 WinForms Anwendung (Multi-Agent / Tool-System) - .gitignore fuer Build-Artefakte, Secrets und Runtime-Daten ergaenzt Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
33 lines
1023 B
C#
33 lines
1023 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace ClawdDotNet.Core.Api.Models;
|
|
|
|
public sealed class ChatRequest
|
|
{
|
|
[JsonPropertyName("model")]
|
|
public string Model { get; set; } = "";
|
|
|
|
[JsonPropertyName("messages")]
|
|
public List<ChatMessage> Messages { get; set; } = new();
|
|
|
|
[JsonPropertyName("tools")]
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public List<ToolDefinition>? Tools { get; set; }
|
|
|
|
[JsonPropertyName("tool_choice")]
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public string? ToolChoice { get; set; }
|
|
|
|
[JsonPropertyName("temperature")]
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public double? Temperature { get; set; }
|
|
|
|
[JsonPropertyName("max_tokens")]
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public int? MaxTokens { get; set; }
|
|
|
|
[JsonPropertyName("stream")]
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
|
public bool Stream { get; set; }
|
|
}
|