Documentation
¶
Index ¶
- Variables
- type MatchMode
- type SearchToolsOptions
- type ToolSearchResult
- type ToolsetIndexRevision
- type ToolsetVectorStore
- func (s *ToolsetVectorStore) GetToolsetAvailableTags(ctx context.Context, toolset types.Toolset) ([]string, error)
- func (s *ToolsetVectorStore) IndexToolset(ctx context.Context, toolset types.Toolset, revision ToolsetIndexRevision) (err error)
- func (s *ToolsetVectorStore) SearchToolsetTools(ctx context.Context, toolset types.Toolset, opts SearchToolsOptions) (matches []*ToolSearchResult, err error)
- func (s *ToolsetVectorStore) ToolsetToolsAreIndexed(ctx context.Context, toolset types.Toolset) (indexed bool, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrToolsetIndexRevisionSuperseded = errors.New("toolset index revision is superseded")
Functions ¶
This section is empty.
Types ¶
type SearchToolsOptions ¶
type ToolSearchResult ¶
type ToolSearchResult struct {
// ToolURN identifies the source tool independently of runtime variations.
ToolURN string
// ToolName is the name stored in the embedding payload.
ToolName string
// Tags are the indexed tags associated with the tool.
Tags []string
// SimilarityScore is the vector similarity between the query and tool.
SimilarityScore float64
}
ToolSearchResult represents a search result with stable tool identity and ranking metadata.
type ToolsetIndexRevision ¶
type ToolsetVectorStore ¶
type ToolsetVectorStore struct {
// contains filtered or unexported fields
}
func NewToolsetVectorStore ¶
func NewToolsetVectorStore( logger *slog.Logger, tracerProvider trace.TracerProvider, db *pgxpool.Pool, chatClient openrouter.CompletionClient, ) *ToolsetVectorStore
func (*ToolsetVectorStore) GetToolsetAvailableTags ¶
func (*ToolsetVectorStore) IndexToolset ¶
func (s *ToolsetVectorStore) IndexToolset( ctx context.Context, toolset types.Toolset, revision ToolsetIndexRevision, ) (err error)
func (*ToolsetVectorStore) SearchToolsetTools ¶
func (s *ToolsetVectorStore) SearchToolsetTools(ctx context.Context, toolset types.Toolset, opts SearchToolsOptions) (matches []*ToolSearchResult, err error)
func (*ToolsetVectorStore) ToolsetToolsAreIndexed ¶
Click to show internal directories.
Click to hide internal directories.