Documentation
¶
Overview ¶
Package threadanalysis turns normalized inline thread context into reusable lifecycle decisions through the durable LLM execution boundary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseAction ¶
func ResponseAction(result Result) (review.ThreadResponseAction, bool)
ResponseAction converts one thread-analysis decision into a concrete response.
func ResponseActions ¶
func ResponseActions(results []Result) []review.ThreadResponseAction
ResponseActions converts thread-analysis decisions into concrete thread responses that can be planned through reviewplan/ledger/outbox.
func ValidateCachedThread ¶
func ValidateCachedThread(opts Options, thread threadcontext.Thread) error
ValidateCachedThread verifies that a cached analysis task still matches the current normalized thread input without invoking the provider.
Types ¶
type Decision ¶
type Decision string
Decision is the reusable lifecycle action selected for one thread.
type Options ¶
type Options struct {
Store llmlifecycle.Store
RunID string
Adapter llm.Adapter
Model string
Effort string
LogPath string
LifecyclePaths llmlifecycle.Paths
Progress llmlifecycle.Progress
Now func() time.Time
NewStepID func() string
}
Options are explicit call-site supplied dependencies for one analysis run.
type Result ¶
type Result struct {
ThreadID string `json:"thread_id"`
Decision Decision `json:"decision"`
ReplyBody string `json:"reply_body,omitempty"`
Summary string `json:"summary,omitempty"`
Resolve bool `json:"resolve"`
Rationale string `json:"rationale,omitempty"`
}
Result is the domain result returned by thread analysis.
func AnalyzeThread ¶
AnalyzeThread analyzes one normalized inline thread through the durable LLM lifecycle.