feat(agentic): add RFC model aliases
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
dfa466707d
commit
428cd25ebc
2 changed files with 29 additions and 0 deletions
|
|
@ -64,6 +64,9 @@ type PlanTask struct {
|
|||
LineRef int `json:"line_ref,omitempty"`
|
||||
}
|
||||
|
||||
// task := agentic.Task{ID: "1", Title: "Review imports"}
|
||||
type Task = PlanTask
|
||||
|
||||
// checkpoint := agentic.PhaseCheckpoint{Note: "Build passes", CreatedAt: "2026-03-31T00:00:00Z"}
|
||||
type PhaseCheckpoint struct {
|
||||
Note string `json:"note"`
|
||||
|
|
|
|||
|
|
@ -16,6 +16,32 @@ type PromptVersionOutput struct {
|
|||
Snapshot PromptVersionSnapshot `json:"snapshot"`
|
||||
}
|
||||
|
||||
// prompt := agentic.Prompt{Name: "coding", Category: "workspace"}
|
||||
type Prompt struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Category string `json:"category,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
SystemPrompt string `json:"system_prompt,omitempty"`
|
||||
UserTemplate string `json:"user_template,omitempty"`
|
||||
Variables map[string]any `json:"variables,omitempty"`
|
||||
Model string `json:"model,omitempty"`
|
||||
ModelConfig map[string]any `json:"model_config,omitempty"`
|
||||
IsActive bool `json:"is_active,omitempty"`
|
||||
}
|
||||
|
||||
// version := agentic.PromptVersion{Name: "coding", Version: 3}
|
||||
type PromptVersion struct {
|
||||
ID int `json:"id"`
|
||||
PromptID int `json:"prompt_id"`
|
||||
Version int `json:"version"`
|
||||
SystemPrompt string `json:"system_prompt,omitempty"`
|
||||
UserTemplate string `json:"user_template,omitempty"`
|
||||
Variables map[string]any `json:"variables,omitempty"`
|
||||
CreatedBy string `json:"created_by,omitempty"`
|
||||
CreatedAt string `json:"created_at,omitempty"`
|
||||
}
|
||||
|
||||
// input := agentic.PromptVersionInput{Workspace: "/srv/.core/workspace/core/go-io/task-42"}
|
||||
type PromptVersionInput struct {
|
||||
Workspace string `json:"workspace"`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue