Documentation
¶
Overview ¶
Package sessionactivity reports the live phase of an agent session.
Eluc (and any other caller) should use Read rather than re-implementing per-runner log scans. Kinds are idle, thinking, responding, tool_calling, and error.
Index ¶
Constants ¶
View Source
const ( RunnerDSH = "dsh" RunnerGrok = "grok" RunnerCodex = "codex" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
type Probe struct {
DSH func(sessionID string) (Snapshot, error)
Grok func(sessionID string) (Snapshot, error)
Codex func(sessionID string) (Snapshot, error)
}
Probe is the injectable entry point. Nil fields use the live agent homes.
func (Probe) Follow ¶
func (p Probe) Follow(runner, sessionID string, afterSeq int64, tail int) (Snapshot, []dshsessions.TranscriptRow, error)
Follow returns activity plus a committed transcript tail.
type Snapshot ¶
type Snapshot struct {
Runner string `json:"runner"`
SessionID string `json:"session_id"`
Kind Kind `json:"kind"`
Detail string `json:"detail,omitempty"`
Live bool `json:"live"`
Workspace string `json:"workspace,omitempty"`
Title string `json:"title,omitempty"`
UpdatedAt int64 `json:"updated_at,omitempty"`
Outcome string `json:"outcome,omitempty"`
}
Snapshot is one session's current phase plus durable facts the caller already needed for display.
func Follow ¶
func Follow(runner, sessionID string, afterSeq int64, tail int) (Snapshot, []dshsessions.TranscriptRow, error)
Follow returns activity plus a committed transcript tail.
Click to show internal directories.
Click to hide internal directories.