Documentation
¶
Index ¶
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 Chain-of-Thought system 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 WithOutputInstructs ¶
WithOutputInstructs set Generator output instructions
func WithStrictJSON ¶ added in v1.2.9
WithStrictJSON set Generator output in JSON
Click to show internal directories.
Click to hide internal directories.