Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Item ¶
type Item struct {
ID string
TurnID string
ItemID string
ParentID string
ToolCallID string
ApprovalID string
WorkflowRunID string
ToolName string
Kind ItemKind
Phase Phase
Status string
Text string
Decision string
DecisionScope string
ApprovalKeys []string
Metadata map[string]any
Events []TimelineEvent
}
type Phase ¶
type Phase string
const ( PhaseRequested Phase = "requested" PhaseApprovalRequired Phase = "approval_required" PhaseApprovalDecided Phase = "approval_decided" PhaseStarted Phase = "started" PhaseProgress Phase = "progress" PhaseCompleted Phase = "completed" PhaseFailed Phase = "failed" PhaseCanceled Phase = "canceled" )
type TimelineEvent ¶
type TimelineEvent struct {
Kind protocol.EventKind
Phase Phase
Sequence int64
Text string
Status string
Decision string
DecisionScope string
ApprovalKeys []string
Metadata map[string]any
LocalResult *protocol.LocalResult
Hook *protocol.HookRun
StartedAt time.Time
ProgressMessages []protocol.ProgressStep
Questions []protocol.UserInputQuestion
ToolOutcome string
ToolCode string
ToolPayload map[string]any
}
type TurnTimelineBuilder ¶
type TurnTimelineBuilder struct {
// contains filtered or unexported fields
}
func NewTurnTimelineBuilder ¶
func NewTurnTimelineBuilder() *TurnTimelineBuilder
func (*TurnTimelineBuilder) HandleEvent ¶
func (b *TurnTimelineBuilder) HandleEvent(ev protocol.Event)
func (*TurnTimelineBuilder) Reset ¶
func (b *TurnTimelineBuilder) Reset()
func (*TurnTimelineBuilder) Snapshot ¶
func (b *TurnTimelineBuilder) Snapshot() Snapshot
Click to show internal directories.
Click to hide internal directories.