MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / NewWebFetch

Function NewWebFetch

go/engine/node/webfetch.go:76–86  ·  view source on GitHub ↗

NewWebFetch builds a WebFetch node. maxChars <= 0 falls back to the default cap.

(id string, urlExpr workflow.Expression, maxChars int, binding workflow.OutputBinding)

Source from the content-addressed store, hash-verified

74//
75// url is nil when the node is wired as a tool.
76type WebFetch struct {
77 engine.LinearNode
78 url *workflowapi.Expression
79 maxChars int
80 binding workflowapi.OutputBinding
81 toolDescription string
82}
83
84// NewWebFetch builds a WebFetch node. maxChars <= 0 falls back to the default cap.
85func NewWebFetch(id string, urlExpr *workflowapi.Expression, maxChars int, binding workflowapi.OutputBinding, toolDescription string) *WebFetch {
86 if maxChars <= 0 {
87 maxChars = webFetchDefaultMaxChars
88 }
89 return &WebFetch{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected