Documentation
¶
Index ¶
- type AnalyzeResult
- type Threads
- func (t *Threads) Analyze(ctx stdcontext.Context, postIDToAnalyze string, context *llm.Context, ...) (*AnalyzeResult, error)
- func (t *Threads) FindActionItems(ctx stdcontext.Context, threadRootID string, context *llm.Context, ...) (*AnalyzeResult, error)
- func (t *Threads) FindOpenQuestions(ctx stdcontext.Context, threadRootID string, context *llm.Context, ...) (*AnalyzeResult, error)
- func (t *Threads) Summarize(ctx stdcontext.Context, threadRootID string, context *llm.Context, ...) (*AnalyzeResult, error)
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)
Click to show internal directories.
Click to hide internal directories.