parse output from skills

This commit is contained in:
Kosta Petan
2023-06-07 16:57:45 +02:00
parent da38ad5dda
commit 0b920fcdfd
5 changed files with 47 additions and 20 deletions

View File

@@ -0,0 +1,25 @@
using System.Text.Json.Serialization;
public class Subtask
{
[JsonPropertyName("subtask")]
public string Name { get; set; }
[JsonPropertyName("LLM_prompt")]
public string LLMPrompt { get; set; }
}
public class Step
{
[JsonPropertyName("step")]
public string Name { get; set; }
[JsonPropertyName("description")]
public string Description { get; set; }
[JsonPropertyName("subtasks")]
public List<Subtask> Subtasks { get; set; }
}
public class DevLeadPlanResponse
{
[JsonPropertyName("steps")]
public List<Step> Steps { get; set; }
}