splitter

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 13 Imported by: 0 modules, 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

Overview

Package splitter provides the Splitter agent that segments conversation logs into distinct topics for storage and retrieval.

Index

Constants

View Source
const (
	// ParamMessages is the key for messages to process ([]storage.Message).
	ParamMessages = "messages"
	// ParamGoal is the key for optional goal text (string).
	ParamGoal = "goal"
)

Request parameters for Splitter agent.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtractedTopic

type ExtractedTopic struct {
	Summary    string `json:"summary"`
	StartMsgID int64  `json:"start_msg_id"`
	EndMsgID   int64  `json:"end_msg_id"`
}

ExtractedTopic represents a topic extracted from a conversation chunk.

type Result

type Result struct {
	Topics []ExtractedTopic
}

Result contains the extracted topics.

type Splitter

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

Splitter segments conversation logs into distinct topics.

func New

func New(
	executor *agent.Executor,
	translator *i18n.Translator,
	cfg *config.Config,
	factRepo storage.FactRepository,
	topicRepo storage.TopicRepository,
) *Splitter

New creates a new Splitter agent.

func (*Splitter) Capabilities

func (s *Splitter) Capabilities() agent.Capabilities

Capabilities returns the agent's capabilities.

func (*Splitter) Description

func (s *Splitter) Description() string

Description returns a human-readable description.

func (*Splitter) Execute

func (s *Splitter) Execute(ctx context.Context, req *agent.Request) (response *agent.Response, err error)

Execute runs the splitter with the given request.

func (*Splitter) Type

func (s *Splitter) Type() agent.AgentType

Type returns the agent type.

Jump to

Keyboard shortcuts

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