using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace AxCopilot.Services.Agent;

public class ToolProperty
{
	[JsonPropertyName("type")]
	public string Type { get; init; } = "string";

	[JsonPropertyName("description")]
	public string Description { get; init; } = "";

	[JsonPropertyName("enum")]
	[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
	public List<string>? Enum { get; init; }

	[JsonPropertyName("items")]
	[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
	public ToolProperty? Items { get; init; }
}
