Documentation
¶
Index ¶
Constants ¶
View Source
const String = s("string")
String Identity codec
Variables ¶
View Source
var DecoderID = FromDecoder( func(reply *chatter.Reply) (float64, *chatter.Reply, error) { return 1.0, reply, nil }, )
Identity decoder, passes LLM reply directly as result
View Source
var EncoderID = FromEncoder( func(q string) (chatter.Message, error) { var prompt chatter.Prompt prompt.WithTask(q) return &prompt, nil }, )
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.