Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebRequest ¶
func NewWebRequest(cfg *WebRequestConfig) (tool.CallableTool, error)
NewWebRequest creates a new web_request tool using FunctionTool.
Types ¶
type WebRequestArgs ¶
type WebRequestArgs struct {
URL string `json:"url" jsonschema:"required,description=The URL to request"`
Method string `` /* 146-byte string literal not displayed */
Headers map[string]string `json:"headers,omitempty" jsonschema:"description=HTTP headers as key-value pairs"`
Body string `json:"body,omitempty" jsonschema:"description=Request body (for POST PUT PATCH)"`
}
WebRequestArgs defines the parameters for making HTTP requests.
type WebRequestConfig ¶
type WebRequestConfig struct {
Timeout time.Duration
MaxRetries int
MaxRequestSize int64
MaxResponseSize int64
AllowedDomains []string
DeniedDomains []string
AllowedMethods []string
AllowRedirects bool
MaxRedirects int
UserAgent string
}
WebRequestConfig defines configuration for the web_request tool.
Click to show internal directories.
Click to hide internal directories.