splitter

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 10 Imported by: 0

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) (*agent.Response, 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