-
Notifications
You must be signed in to change notification settings - Fork 350
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Hi,
I would like to use this SDK to Parse the messages Json and then iterate it and access the different fields
For example, can I do this?
var messages = """
[
{
"role": "system",
"content": "You are an AI assistant..."
},
{
"role": "user",
"content": "some user question",
}
]
""";
List<ChatMessage> p = ParseChatRequest(messages);
foreach (var message in p)
{
Print($"{p.role}, {p.content}").
}
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation