Include glossary guidance in proposal conversations

This commit is contained in:
2026-11-26 18:22:52 +00:00
parent 20db09bd2a
commit e0445abe48
15 changed files with 82 additions and 15 deletions

View File

@@ -31,10 +31,7 @@ type TranscriptModule interface {
type StructuredCompletionRequest = structuredoutput.Request
type StructuredCompletionResponse = structuredoutput.Response
type GlossaryInstruction struct {
Collection string
Text string
}
type GlossaryInstruction = promptcontext.GlossaryInstruction
// ModuleRunSpec identifies one resolved module instance in a pipeline.
type ModuleRunSpec struct {
@@ -62,6 +59,7 @@ func (s *ModuleRunSpec) PrepareGlossary() error {
if err != nil {
return err
}
variables.InstructionsBlock = promptcontext.GlossaryInstructionsBlock(s.GlossaryInstructions)
s.GlossaryVariables = &variables
}
if s.GlossaryView == nil {