NewWebFetch builds a WebFetch node. maxChars <= 0 falls back to the default cap.
(id string, urlExpr workflow.Expression, maxChars int, binding workflow.OutputBinding)
| 74 | // |
| 75 | // url is nil when the node is wired as a tool. |
| 76 | type 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. |
| 85 | func 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{ |
nothing calls this directly
no outgoing calls
no test coverage detected