core

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Title       string  `json:"title"`
	Description *string `json:"description"`
}

type Core

type Core struct {
}

func (*Core) ServeHTTP

func (c *Core) ServeHTTP(server *mcp.Server, httpAddress string) error

func (*Core) ServeStdio

func (c *Core) ServeStdio(server *mcp.Server) error

func (*Core) StartServer

func (c *Core) StartServer(internalAPI *api.API, httpAddress string) error

type DeleteDocumentArgs

type DeleteDocumentArgs struct {
	URLPrefix string `json:"url_prefix" jsonschema:"required"`
	Context   string `json:"context,omitempty"`
}

type DocumentOutput

type DocumentOutput struct {
	URL         string `json:"url"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Content     string `json:"content"`
	Checksum    string `json:"checksum"`
}

type GetContextArgs added in v1.0.18

type GetContextArgs struct {
	Context string `json:"context,omitempty"`
}

type GetDocumentArgs

type GetDocumentArgs struct {
	URL     string `json:"url" jsonschema:"required"`
	Context string `json:"context,omitempty"`
}

type LearnApiArgs

type LearnApiArgs struct {
	Api     string `json:"api" jsonschema:"required"`
	Context string `json:"context,omitempty"`
}

type ListDocumentsArgs

type ListDocumentsArgs struct {
	Limit   int    `json:"limit,omitempty"`
	Offset  int    `json:"offset,omitempty"`
	Context string `json:"context,omitempty"`
}

type SearchDatasetTopKArgs

type SearchDatasetTopKArgs struct {
	Query     string  `json:"query" jsonschema:"required"`
	TopK      int     `json:"top_k" jsonschema:"required"`
	Threshold float64 `json:"threshold,omitempty"`
}

type SearchDocChunks added in v1.0.13

type SearchDocChunks struct {
	Query   string `json:"query" jsonschema:"required"`
	Context string `json:"context,omitempty"`
}

type SearchOutput added in v1.0.11

type SearchOutput struct {
	URL         string  `json:"url"`
	Title       string  `json:"title"`
	Description string  `json:"description"`
	Content     string  `json:"content"`
	Checksum    string  `json:"checksum"`
	Score       float64 `json:"score"`
}

New struct to include score for search results

type UpsertDocumentArgs

type UpsertDocumentArgs struct {
	URL         string `json:"url" jsonschema:"required"`
	Content     string `json:"content" jsonschema:"required"`
	Title       string `json:"title,omitempty"`
	Description string `json:"description,omitempty"`
	Context     string `json:"context,omitempty"`
}

Jump to

Keyboard shortcuts

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