Documentation
¶
Index ¶
- type Generator
- type Option
- func WithBackground(background []string) Option
- func WithContextProviders(providers ...systemprompt.ContextProvider) Option
- func WithEvolves(evolves []string) Option
- func WithKeyResults(keyResults []string) Option
- func WithObjectives(objectives []string) Option
- func WithRoles(roles []string) Option
- func WithStrictJSON(v bool) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
systemprompt.BaseGenerator
// contains filtered or unexported fields
}
Generator is BROKE prompt generator
type Option ¶
type Option = func(g *Generator)
func WithBackground ¶
WithBackground set Generator background
func WithContextProviders ¶
func WithContextProviders(providers ...systemprompt.ContextProvider) Option
WithContextProviders set Generator context pproviders
func WithKeyResults ¶
WithKeyResults set Generator keyResults
func WithObjectives ¶
WithObjectives set Generator objectives
func WithStrictJSON ¶ added in v1.2.9
WithStrictJSON set Generator output in JSON
Click to show internal directories.
Click to hide internal directories.