Documentation
¶
Overview ¶
Package web implements a stdlib-only web_fetch tool: download a URL, convert HTML to plain text, and return a slice of the result with optional pagination. Intended for documentation lookups and inspecting URLs the model encounters in error messages.
Safety guards: http/https only, configurable timeout, body size cap, and redirect limit. There is no host allow/deny list — operators who need to keep the agent off internal networks should run with `-bash restricted` and consider running gocode itself in a sandbox.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalToolInput ¶
func MarshalToolInput(in fetchInput) (json.RawMessage, error)
MarshalToolInput is exposed for tests.
Types ¶
Click to show internal directories.
Click to hide internal directories.