Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextProvider ¶
ContextProvider is an interface that defines the title and info of a context provider
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator is system prompt generator
func NewGenerator ¶
NewGenerator returns a new system prompt Generator
func (*Generator) AddContextProviders ¶
func (g *Generator) AddContextProviders(providers ...ContextProvider)
AddContextProviders registers new context providers
func (*Generator) ContextProvider ¶
func (g *Generator) ContextProvider(title string) (ContextProvider, error)
ContextProvider retrieves a context provider by name. If the context provider is not found returns not found error
func (*Generator) RemoveContextProviders ¶
RemoveContextProviders Unregisters an existing context provider.
type Option ¶
type Option = func(g *Generator)
func WithBackground ¶
WithBackground set Generator background
func WithContextProviders ¶
func WithContextProviders(providers ...ContextProvider) Option
WithContextProviders set Generator context pproviders
func WithOutputInstructs ¶
WithOutputInstructs set Generator output instructions
Click to show internal directories.
Click to hide internal directories.