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

Struct FunctionCall

go/engine/node/functioncall.go:30–36  ·  view source on GitHub ↗

FunctionCall invokes a compiled engine.Function. It evaluates input bindings in the surrounding scope, runs the function and applies output bindings back to the surrounding scope.

Source from the content-addressed store, hash-verified

28// to the surrounding scope.
29type FunctionCall struct {
30 engine.LinearNode
31 fn *engine.Function
32 inputBindings map[string]workflowapi.Expression // arg uid → expression
33 outputBindings map[string]workflowapi.OutputBinding // return uid → binding
34 toolDescription string
35}
36
37// NewFunctionCall builds a FunctionCall. Validates that every declared return
38// has a matching output binding.
39func NewFunctionCall(id string, fn *engine.Function, inputBindings map[string]workflowapi.Expression, outputBindings map[string]workflowapi.OutputBinding, toolDescription string) (*FunctionCall, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected