Documentation
¶
Overview ¶
Package modelanalyzer is the production reasoning.Analyzer: it connects a model client to the read-only MCP tools for one pinned analysis and retries failed attempts.
Each attempt opens a fresh in-memory MCP session over the same reasoning.ContextProvider and runs reasoning.AnalyzeCandidateWithTools. Only transport, MCP, and decoding errors are retried; a policy rejection is a successful analysis with a rejected outcome and is never retried into a different answer. Because every attempt sees the same pinned packet and graph revision, a retry cannot observe newer state. When all attempts fail, the error stops the reasoning service; see reasoning.Service.Run.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct {
// contains filtered or unexported fields
}
Analyzer runs model investigations with bounded retry.
func (*Analyzer) Analyze ¶
func (analyzer *Analyzer) Analyze(ctx context.Context, packet reasoning.Packet, provider *reasoning.ContextProvider) (reasoning.AnalysisRun, error)
Analyze implements reasoning.Analyzer. The returned run records every failed attempt's error, including when a later attempt succeeds.