merger

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package merger provides the Merger agent that evaluates whether two topics should be merged and generates a combined summary.

Index

Constants

View Source
const (
	// ParamTopic1Summary is the key for first topic summary (string).
	ParamTopic1Summary = "topic1_summary"
	// ParamTopic2Summary is the key for second topic summary (string).
	ParamTopic2Summary = "topic2_summary"
)

Request parameters for Merger agent.

Variables

This section is empty.

Functions

This section is empty.

Types

type Merger

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

Merger evaluates whether two topics should be merged.

func New

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

New creates a new Merger agent.

func (*Merger) Capabilities

func (m *Merger) Capabilities() agent.Capabilities

Capabilities returns the agent's capabilities.

func (*Merger) Description

func (m *Merger) Description() string

Description returns a human-readable description.

func (*Merger) Execute

func (m *Merger) Execute(ctx context.Context, req *agent.Request) (*agent.Response, error)

Execute runs the merger with the given request.

func (*Merger) Type

func (m *Merger) Type() agent.AgentType

Type returns the agent type.

type Result

type Result struct {
	ShouldMerge bool   `json:"should_merge"`
	NewSummary  string `json:"new_summary"`
}

Result contains the merge decision.

Jump to

Keyboard shortcuts

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