21 lines
561 B
C#
21 lines
561 B
C#
using System;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace xAiModels.Models
|
|
{
|
|
public class XAiMcpJsonRpcRequest
|
|
{
|
|
[JsonPropertyName("jsonrpc")]
|
|
public string JsonRpc { get; set; } = "2.0";
|
|
|
|
[JsonPropertyName("id")]
|
|
public string Id { get; set; } = Guid.NewGuid().ToString("N");
|
|
|
|
[JsonPropertyName("method")]
|
|
public string Method { get; set; }
|
|
|
|
[JsonPropertyName("params")]
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
public object Params { get; set; }
|
|
}
|
|
} |