Documentation
¶
Overview ¶
Package instructions is what a turn's instructions carry from the loop's book: the earlier turns and, for a resume turn, what the stopped session left. Plain data; the templates of internal/turn render it.
Index ¶
Constants ¶
const HistoryMax = 10
HistoryMax is how many earlier turns the instructions carry.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OpenItem ¶
type OpenItem struct{ ID, Kind, Summary, WaitingOn, Since string }
OpenItem is one open item of the unit, as its instructions list it.
type PastTurn ¶
type PastTurn struct {
When time.Time
Intent, Trigger, State, Verdict, Head, Endorsed string
Summary, Next, Triage string
Said []string
// Question and Options are what the turn asks that no answer reached, on
// the turn this send replaces; an agent wrote them.
Question string
Options []record.Option
// Ledger is one line per op of the turn's records with its outcome.
Ledger []string
}
PastTurn is one earlier turn. The first row of fields is the loop's, the second an agent's, Said the user's.
type Resume ¶
type Resume struct {
Question *Question
Verdict string
Blocking, NonBlocking int
ArtifactKind, ArtifactBody string
Items []Item
Notes, Head, CurrentHead, Answer string
}
Resume is what a session that stopped left for the next one.