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 ¶
WorkflowResult holds the output of a workflow execution.
Click to show internal directories.
Click to hide internal directories.