threads

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzeResult

type AnalyzeResult struct {
	Stream         *llm.TextStreamResult
	ConversationID string
}

AnalyzeResult contains the result of a thread analysis call.

type Threads

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

func New

func New(
	llm llm.LanguageModel,
	prompts *llm.Prompts,
	client mmapi.Client,
	convService *conversation.Service,
) *Threads

func (*Threads) Analyze

func (t *Threads) Analyze(ctx stdcontext.Context, postIDToAnalyze string, context *llm.Context, promptName string, botID string, userID string) (*AnalyzeResult, error)

Analyze performs thread analysis by creating a conversation entity, building a CompletionRequest from its turns, and calling the LLM with tools disabled.

func (*Threads) FindActionItems

func (t *Threads) FindActionItems(ctx stdcontext.Context, threadRootID string, context *llm.Context, botID string, userID string) (*AnalyzeResult, error)

func (*Threads) FindOpenQuestions

func (t *Threads) FindOpenQuestions(ctx stdcontext.Context, threadRootID string, context *llm.Context, botID string, userID string) (*AnalyzeResult, error)

func (*Threads) Summarize

func (t *Threads) Summarize(ctx stdcontext.Context, threadRootID string, context *llm.Context, botID string, userID string) (*AnalyzeResult, error)

Jump to

Keyboard shortcuts

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