sessionquery

package
v0.3.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config, deps Deps) (agentkit.Tool, error)

New registers tool/session-query: full-text search over durable session logs for the current tenant.

Types

type Config

type Config struct {
	SessionsDir  string `json:"sessionsDir"`
	DefaultLimit int    `json:"defaultLimit"`
}

type Deps

type Deps struct {
	Index     capsessionindex.Service `json:"index"`
	Workspace workspace.Service       `json:"workspace"`
}

type Input

type Input struct {
	Query string `json:"query" jsonschema:"Keywords or phrase to search across past sessions in this tenant"`
	Limit int    `json:"limit,omitempty" jsonschema:"Maximum hits (default 10, max 50)"`
}

type Output

type Output struct {
	Hits  []capsessionindex.Hit `json:"hits"`
	Count int                   `json:"count"`
}

Jump to

Keyboard shortcuts

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