Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewToolResultJSON ¶
func NewToolResultJSON(data interface{}) (*mcp.CallToolResult, error)
NewToolResultJSON creates a new tool result with JSON content
Types ¶
type SearchResponse ¶
type SearchResponse struct {
Query string `json:"query"`
ResultCount int `json:"resultCount"`
Results []SearchResult `json:"results"`
Provider string `json:"provider"`
Timestamp time.Time `json:"timestamp"`
}
SearchResponse represents a unified response structure
type SearchResult ¶
type SearchResult struct {
Title string `json:"title"`
URL string `json:"url"`
Description string `json:"description"`
Type string `json:"type"` // web, image, news, video, local
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
SearchResult represents a unified search result
Click to show internal directories.
Click to hide internal directories.