You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
public class Rootobject
|
|
{
|
|
public string? model { get; set; }
|
|
public DateTime created_at { get; set; }
|
|
public Message? message { get; set; }
|
|
public string? done_reason { get; set; }
|
|
public bool done { get; set; }
|
|
public long total_duration { get; set; }
|
|
public int load_duration { get; set; }
|
|
public int prompt_eval_count { get; set; }
|
|
public int prompt_eval_duration { get; set; }
|
|
public int eval_count { get; set; }
|
|
public long eval_duration { get; set; }
|
|
}
|
|
|
|
public class Message
|
|
{
|
|
public string? role { get; set; }
|
|
public string? content { get; set; }
|
|
public List<Tool_Calls> tool_calls { get; set; } = new List<Tool_Calls>();
|
|
}
|
|
|
|
public class Tool_Calls
|
|
{
|
|
public Function? function { get; set; }
|
|
}
|
|
|
|
public class Function
|
|
{
|
|
public string? name { get; set; }
|
|
public Dictionary<string,string> arguments { get; set; } = new Dictionary<string,string>();
|
|
}
|