Documentation
¶
Overview ¶
LLM facilities.
Index ¶
- func MustTagExtractor(tag string) func(answer string) (original string, extracted string)
- func ParseLLMJsonAs[T any](r miso.Rail, s string) (T, error)
- func ParseThink(m string) (thought string, answer string)
- func TagExtractor(tag string) (func(answer string) (original string, extracted string), error)
- type MsgDelta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustTagExtractor ¶
Extract content in <tag>...</tag>.
func ParseThink ¶ added in v0.4.2
Parse </think> tag.
thought contains anything before the </think> tag, including the </think> tag itself.
answer contains anything after the </think> tag.
Types ¶
Click to show internal directories.
Click to hide internal directories.