threads

package
v0.0.1-rc99 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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