aitoolreturn

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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

type ReturnNode struct {
	*nodebase.BaseNode
	// contains filtered or unexported fields
}

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL