Migrate CLI execution and terminal reports

This commit is contained in:
2026-11-18 19:04:15 +00:00
parent e7a8b0db04
commit 77f168c660
7 changed files with 66 additions and 66 deletions

View File

@@ -6,7 +6,6 @@ import "go.maximumdirect.net/promptkit"
type Execution struct {
RunID string `json:"run_id,omitempty"`
PromptID string `json:"prompt_id,omitempty"`
PromptVersion string `json:"prompt_version,omitempty"`
ProfileID string `json:"profile_id,omitempty"`
BackendID string `json:"backend_id,omitempty"`
Model string `json:"model,omitempty"`
@@ -53,7 +52,7 @@ func (collector *Collector) Observe(event promptkit.ExecutionEvent) {
return TokenCount{Value: value.Value, Known: value.Known, Complete: value.Complete}
}
collector.report = &Execution{
RunID: event.RunID, PromptID: event.PromptID, PromptVersion: event.PromptVersion,
RunID: event.RunID, PromptID: event.PromptID,
ProfileID: event.ProfileID, BackendID: event.BackendID, Model: event.Model,
Outcome: outcome(event.Outcome), Failure: failure(event.Failure),
StatusCode: event.StatusCode, RetriesExhausted: event.RetriesExhausted,