Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultInternetSearchRateLimit is the default maximum requests per second for internet search DefaultInternetSearchRateLimit = 1 // InternetSearchRateLimitEnvVar is the environment variable for configuring rate limit InternetSearchRateLimitEnvVar = "INTERNET_SEARCH_RATE_LIMIT" )
Variables ¶
This section is empty.
Functions ¶
func NewToolResultJSON ¶
func NewToolResultJSON(data any) (*mcp.CallToolResult, error)
NewToolResultJSON creates a new tool result with JSON content
Types ¶
type HTTPClientInterface ¶ added in v0.21.1
HTTPClientInterface defines the interface for HTTP clients
type RateLimitedHTTPClient ¶ added in v0.21.1
type RateLimitedHTTPClient struct {
// contains filtered or unexported fields
}
RateLimitedHTTPClient implements HTTPClientInterface with rate limiting
func NewRateLimitedHTTPClient ¶ added in v0.21.1
func NewRateLimitedHTTPClient() *RateLimitedHTTPClient
NewRateLimitedHTTPClient creates a new rate-limited HTTP client for internet search with proxy support
type SearchResponse ¶
type SearchResponse struct {
Results []SearchResult `json:"results"`
Provider string `json:"provider"`
Timestamp time.Time `json:"timestamp"`
}
SearchResponse represents a unified response structure
Click to show internal directories.
Click to hide internal directories.