Documentation
¶
Index ¶
- func Register(p Provider)
- type ExtractInput
- type ExtractReply
- type Extractor
- type Provider
- type SearchInput
- type SearchReply
- type Searcher
- type Server
- func (srv *Server) Close() error
- func (srv *Server) Extracts(ctx context.Context, req *mcp.CallToolRequest, input ExtractInput) (*mcp.CallToolResult, ExtractReply, error)
- func (srv *Server) Run(ctx context.Context) error
- func (srv *Server) Search(ctx context.Context, req *mcp.CallToolRequest, input SearchInput) (*mcp.CallToolResult, SearchReply, error)
- type Sort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExtractInput ¶
type ExtractInput struct {
Url string `json:"url" jsonschema:"the url the web page to extract content from"`
}
type ExtractReply ¶
type ExtractReply struct {
Content string `json:"content" jsonschema:"the content extracted from the web page"`
}
type Extractor ¶
type Extractor interface {
Extracts(ctx context.Context, req *mcp.CallToolRequest, input ExtractInput) (*mcp.CallToolResult, ExtractReply, error)
}
type SearchInput ¶
type SearchReply ¶
type Searcher ¶
type Searcher interface {
Search(ctx context.Context, req *mcp.CallToolRequest, input SearchInput) (*mcp.CallToolResult, SearchReply, error)
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Extracts ¶
func (srv *Server) Extracts(ctx context.Context, req *mcp.CallToolRequest, input ExtractInput) (*mcp.CallToolResult, ExtractReply, error)
func (*Server) Search ¶
func (srv *Server) Search(ctx context.Context, req *mcp.CallToolRequest, input SearchInput) (*mcp.CallToolResult, SearchReply, error)
Click to show internal directories.
Click to hide internal directories.