Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripYAMLMarkers ¶
StripYAMLMarkers looks for ```yaml and ``` markers in the input byte slice. If found, it strips these markers and returns the content between them. If markers are not found, the original byte slice is returned.
Types ¶
type Claude ¶
type Claude struct {
URL string
// contains filtered or unexported fields
}
func (*Claude) AddPostProcessor ¶
func (c *Claude) AddPostProcessor(p PostProcessor)
type CommandExecutor ¶
type Gemini ¶
type Gemini struct {
Executor CommandExecutor
// contains filtered or unexported fields
}
func (*Gemini) AddPostProcessor ¶
func (g *Gemini) AddPostProcessor(p PostProcessor)
type PostProcessor ¶
PostProcessor defines the signature for functions that can post-process the LLM's raw output.
type Provider ¶
type Provider interface {
Setup(workspacesDir, tokensDir string) error
Run(prompt string) ([]byte, error)
// AddPostProcessor adds a post-processing function to the provider.
// These functions are applied sequentially to the LLM's raw output.
AddPostProcessor(p PostProcessor)
}
Provider defines the interface for interacting with an LLM.
func NewLLMProvider ¶
type RealCommandExecutor ¶
type RealCommandExecutor struct{}
Click to show internal directories.
Click to hide internal directories.