orchestration

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package orchestration includes tools orchestration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

type Tool[I schema.Schema] struct {
	tools.Config
	// contains filtered or unexported fields
}

Tool is orchestration tool for tools selector

func New

func New[I schema.Schema](selector ToolSelector[I], opts ...tools.Option) *Tool[I]

func (*Tool[I]) RunAnonymous

func (t *Tool[I]) RunAnonymous(ctx context.Context, input any) (any, error)

RunAnonymous returns a tool results based on input for orchestration

type ToolSelector

type ToolSelector[I schema.Schema] func(req *I) (tools.AnonymousTool, any, error)

ToolSelector will returns a Tool based on input param

Jump to

Keyboard shortcuts

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