Documentation
¶
Overview ¶
Package aitoolreturn contains the ai-tool-return node implementation: the exit point of a flow exposed as an agent tool. It resolves the pending tool call the ai-agent awaits, delivering the processed message back as the tool result — the same correlation convention as linkOut's return mode.
Index ¶
Constants ¶
const Type = "ai-tool-return"
Type is the registered node type id.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
}
Config holds the ai-tool-return configuration (currently none — the correlation is taken from the message's stamped id).
type ReturnNode ¶
ReturnNode is the ai-tool-return executor.
func NewReturnNode ¶
func NewReturnNode(node nodestore.NodeInterface, config *Config, host nodebase.NodeHost) *ReturnNode
NewReturnNode creates a new ai-tool-return node.
func (*ReturnNode) Execute ¶
func (n *ReturnNode) Execute(ctx context.Context, input nodestore.MessageInterface) (nodestore.MessageInterface, error)
Execute resolves the pending call stamped into the message metadata ("msgId" — registered by the host when the agent injected the call) and passes the message through, so a wired output still receives it.