feat(trace): record action Source and LLMReasoning

This commit is contained in:
pj committed 2026-06-12 10:29:09 +05:30
1 parent 58c9bb42e1
commit 1b3545abb2
1 file changed
+5
+5
View File
@@ -82,6 +82,11 @@ type Action struct {
Selector string `json:"selector,omitempty"`
ResolvedBounds *BoundsRecord `json:"resolved_bounds,omitempty"`
TapPoint *PointRecord `json:"tap_point,omitempty"`
// Source names the backend that chose this action: "llm" when the LLM
// action backend selected it, empty for the seeded picker. LLMReasoning is
// the model's short rationale, shown by the replay UI to explain the pick.
Source string `json:"source,omitempty"`
LLMReasoning string `json:"llm_reasoning,omitempty"`
}
type BoundsRecord struct {