Documentation
¶
Index ¶
Constants ¶
View Source
const (
WebFetchToolName = "web_fetch"
)
View Source
const (
WebSearchToolName = "web_search"
)
Variables ¶
This section is empty.
Functions ¶
func NewWebFetchTool ¶ added in v1.6.16
func NewWebSearchTool ¶
Types ¶
type McpSearchRequest ¶ added in v1.6.16
type McpSearchRequest struct {
Jsonrpc string `json:"jsonrpc"`
ID int `json:"id"`
Method string `json:"method"`
Params struct {
Name string `json:"name"`
Arguments struct {
Query string `json:"query"`
NumResults int `json:"numResults,omitempty"`
Livecrawl string `json:"livecrawl,omitempty"`
Type string `json:"type,omitempty"`
ContextMaxCharacters int `json:"contextMaxCharacters,omitempty"`
} `json:"arguments"`
} `json:"params"`
}
type McpSearchResponse ¶ added in v1.6.16
type WebFetchTool ¶ added in v1.6.16
type WebFetchTool struct {
// contains filtered or unexported fields
}
func (*WebFetchTool) Description ¶ added in v1.6.16
func (t *WebFetchTool) Description() string
func (*WebFetchTool) Execute ¶ added in v1.6.16
func (t *WebFetchTool) Execute(ctx context.Context, input map[string]interface{}) (interface{}, error)
func (*WebFetchTool) Metadata ¶ added in v1.6.16
func (t *WebFetchTool) Metadata() types.ToolMetadata
func (*WebFetchTool) Name ¶ added in v1.6.16
func (t *WebFetchTool) Name() string
func (*WebFetchTool) Schema ¶ added in v1.6.16
func (t *WebFetchTool) Schema() map[string]interface{}
type WebSearchTool ¶
type WebSearchTool struct {
// contains filtered or unexported fields
}
func (*WebSearchTool) Description ¶
func (t *WebSearchTool) Description() string
func (*WebSearchTool) Execute ¶
func (t *WebSearchTool) Execute(ctx context.Context, input map[string]interface{}) (interface{}, error)
func (*WebSearchTool) Metadata ¶
func (t *WebSearchTool) Metadata() types.ToolMetadata
func (*WebSearchTool) Name ¶
func (t *WebSearchTool) Name() string
func (*WebSearchTool) Schema ¶
func (t *WebSearchTool) Schema() map[string]interface{}
Click to show internal directories.
Click to hide internal directories.