Model\GenAI\GenAIMessages.cs (11)
224MessagePart.TextType => Deserialize<TextPart>(doc.RootElement, options),
225MessagePart.ToolCallType => TryParseStringArguments(Deserialize<ToolCallRequestPart>(doc.RootElement, options)),
226MessagePart.ToolCallResponseType => Deserialize<ToolCallResponsePart>(doc.RootElement, options),
227MessagePart.BlobType => Deserialize<BlobPart>(doc.RootElement, options),
228MessagePart.FileType => Deserialize<FilePart>(doc.RootElement, options),
229MessagePart.UriType => Deserialize<UriPart>(doc.RootElement, options),
230MessagePart.ReasoningType => Deserialize<ReasoningPart>(doc.RootElement, options),
231MessagePart.ServerToolCallType => TryParseServerToolCallArguments(Deserialize<ServerToolCallPart>(doc.RootElement, options)),
232MessagePart.ServerToolCallResponseType => Deserialize<ServerToolCallResponsePart>(doc.RootElement, options),
233_ => Deserialize<GenericPart>(doc.RootElement, options),
243errorPart = Deserialize<UnexpectedErrorPart>(doc.RootElement, options);