Documentation
¶
Overview ¶
Package synth provides spec synthesis (generation) capabilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanSynthesize ¶
CanSynthesize returns whether a spec type can be synthesized.
Types ¶
type SynthesisInput ¶
type SynthesisInput struct {
MRD string // Market Requirements Document
PRD string // Product Requirements Document
UXD string // User Experience Design
TRD string // Technical Requirements Document (for IRD synthesis)
Constitution string // Project/org constitution
Press string // Press Release (for FAQ and PRD synthesis)
FAQ string // FAQ document (for PRD synthesis)
Context string // Aggregated context summary (for grounding)
}
SynthesisInput contains the input documents for synthesis.
type SynthesisResult ¶
type SynthesisResult struct {
SpecType types.SpecType
Content string
Sources []types.SpecType // Source specs used
}
SynthesisResult contains the generated document and metadata.
type Synthesizer ¶
type Synthesizer struct {
// contains filtered or unexported fields
}
Synthesizer generates specs from source documents using LLM.
func NewSynthesizer ¶
func NewSynthesizer(client LLMClient) *Synthesizer
NewSynthesizer creates a new synthesizer with the given LLM client.
func (*Synthesizer) Synthesize ¶
func (s *Synthesizer) Synthesize(ctx context.Context, targetType types.SpecType, input SynthesisInput) (*SynthesisResult, error)
Synthesize generates a spec of the given type from input documents.
Click to show internal directories.
Click to hide internal directories.