search

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package search defines the session and entry search contracts exported by the agent package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntrySearchHit

type EntrySearchHit struct {
	SessionID string
	EntryID   string
	Timestamp float64
	Snippet   *string
	Score     *float64
}

EntrySearchHit is one entry-level search result.

type EntrySearchService

type EntrySearchService interface {
	SearchEntries(query SearchQuery) ([]EntrySearchHit, error)
}

EntrySearchService is the optional entry-search capability of a SessionSearchService implementation.

type SearchQuery

type SearchQuery struct {
	Text  string
	Limit *int
}

SearchQuery contains the text to search and an optional result limit.

type SessionSearchHit

type SessionSearchHit struct {
	SessionID string
	Score     *float64
	Top       *SessionSearchTop
}

SessionSearchHit is one session-level search result.

type SessionSearchService

type SessionSearchService interface {
	SearchSessions(query SearchQuery) ([]SessionSearchHit, error)
	Sync() error
	Notify(sessionID string)
	Remove(sessionID string) error
	Close() error
}

SessionSearchService searches and maintains a session search index. Asynchronous upstream operations block until completion and return errors.

type SessionSearchTop

type SessionSearchTop struct {
	EntryID   string
	Snippet   *string
	Timestamp float64
}

SessionSearchTop is the highest-ranking entry attached to a session hit.

Jump to

Keyboard shortcuts

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