Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPDFSplitter ¶ added in v0.2.2
NewPDFSplitter returns a Splitter that extracts printable text and delegates to a size-based splitter for chunking.
func WithMCPManager ¶ added in v0.2.6
WithMCPManager attaches an MCP manager so the augmenter can index mcp: resources.
Types ¶
type AugmentDocsInput ¶
type AugmentDocsInput struct {
Query string
Locations []string
Match *option.Options
Model string
MaxResponseSize int //size in byte
MaxDocuments int
//based on meta['path'] include full path as long it does not go over //max response size
IncludeFile bool
TrimPath string //trim path prefix
}
func (*AugmentDocsInput) Init ¶
func (i *AugmentDocsInput) Init(ctx context.Context)
func (*AugmentDocsInput) Location ¶
func (i *AugmentDocsInput) Location(location string) string
type AugmentDocsOutput ¶
AugmentDocsOutput represents output from extraction
func (*AugmentDocsOutput) LoadDocuments ¶
type CodeAugmenter ¶
type CodeAugmenter struct {
// contains filtered or unexported fields
}
type DocsAugmenter ¶
type DocsAugmenter struct {
// contains filtered or unexported fields
}
func NewDocsAugmenter ¶
type Document ¶
func (Document) ProjectDocument ¶
type Documents ¶
func (Documents) ProjectDocuments ¶
type Service ¶
type Service struct {
DocsAugmenters shared.Map[string, *DocsAugmenter]
// contains filtered or unexported fields
}
Service extracts structured information from LLM responses
func (*Service) AugmentDocs ¶
func (s *Service) AugmentDocs(ctx context.Context, input *AugmentDocsInput, output *AugmentDocsOutput) error
func (*Service) Method ¶
func (s *Service) Method(name string) (svc.Executable, error)
Method returns the specified method
func (*Service) Methods ¶
func (s *Service) Methods() svc.Signatures
Methods returns the service methods
Click to show internal directories.
Click to hide internal directories.