Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DecoderID = FromDecoder( func(reply *chatter.Reply) (float64, string, error) { return 1.0, reply.String(), nil }, )
Identity decoder, passes LLM reply directly as result
View Source
var EncoderID = FromEncoder( func(q string) (prompt *chatter.Prompt, err error) { prompt = &chatter.Prompt{} prompt.WithTask(q) return }, )
Identity encoder, passes input string directly to prompt
Functions ¶
func FromDecoder ¶
From is helper to build Decoder[B] interface from pure function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.