llm

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

LLM facilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustTagExtractor

func MustTagExtractor(tag string) func(answer string) (original string, extracted string)

Extract content in <tag>...</tag>.

func ParseThink added in v0.4.2

func ParseThink(m string) (thought string, answer string)

Parse </think> tag.

thought contains anything before the </think> tag, including the </think> tag itself.

answer contains anything after the </think> tag.

func TagExtractor

func TagExtractor(tag string) (func(answer string) (original string, extracted string), error)

Extract content in <tag>...</tag>.

Types

type MsgDelta

type MsgDelta struct {
	// contains filtered or unexported fields
}

func NewMsgDelta

func NewMsgDelta() *MsgDelta

func (*MsgDelta) Complete

func (m *MsgDelta) Complete() string

func (*MsgDelta) Delta

func (m *MsgDelta) Delta(s string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL