Documentation
¶
Index ¶
- func AutomaticReplacement(summary string, history []core.Message) ([]core.Message, error)
- func BuildRequest(history []core.Message, prompt string, automatic bool) ([]core.Message, error)
- func IsCancellation(err error) bool
- func LatestTodos(history []core.Message) tools.TodoList
- func LatestUserMessage(messages []core.Message) (core.Message, bool)
- func ManualReplacement(summary string, todos tools.TodoList) (core.Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutomaticReplacement ¶
func BuildRequest ¶
func IsCancellation ¶
func ManualReplacement ¶ added in v0.73.0
ManualReplacement builds the user message that replaces the history after a user-requested compaction. It runs between turns, so unlike AutomaticReplacement it keeps no user message as the current task.
Types ¶
This section is empty.