compositetools

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package compositetools provides a MultiSession decorator that adds composite tool (workflow) capabilities to a session.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDecorator

func NewDecorator(
	sess sessiontypes.MultiSession,
	compositeTools []vmcp.Tool,
	executors map[string]WorkflowExecutor,
) sessiontypes.MultiSession

NewDecorator wraps sess with composite tool support. compositeTools is the metadata list appended to session.Tools(). executors maps each composite tool name to its workflow executor. Both may be nil/empty.

Types

type WorkflowExecutor

type WorkflowExecutor interface {
	ExecuteWorkflow(ctx context.Context, params map[string]any) (*WorkflowResult, error)
}

WorkflowExecutor executes a named composite tool workflow.

type WorkflowResult

type WorkflowResult struct {
	Output map[string]any
	Error  error
}

WorkflowResult holds the output of a workflow execution.

Jump to

Keyboard shortcuts

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