text

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TextTransport

type TextTransport struct {
	// contains filtered or unexported fields
}

TextTransport executes tools defined as text templates.

func NewTextTransport

func NewTextTransport(logger func(string, ...interface{})) *TextTransport

NewTextTransport creates a new TextTransport.

func (*TextTransport) CallTool

func (t *TextTransport) CallTool(ctx context.Context, toolName string, args map[string]any, manual Provider, l *string) (any, error)

CallTool renders the template with the provided arguments.

func (*TextTransport) CallToolStream

func (t *TextTransport) CallToolStream(ctx context.Context, toolName string, args map[string]any, p Provider) (transports.StreamResult, error)

CallToolStream is not supported for TextTransport.

func (*TextTransport) DeregisterToolProvider

func (t *TextTransport) DeregisterToolProvider(ctx context.Context, manual Provider) error

DeregisterToolProvider is a no-op for TextTransport.

func (*TextTransport) RegisterToolProvider

func (t *TextTransport) RegisterToolProvider(ctx context.Context, manual Provider) ([]Tool, error)

RegisterToolProvider generates tools from the provider's templates.

func (*TextTransport) SetBasePath

func (t *TextTransport) SetBasePath(path string)

SetBasePath sets the base path for resolving files (unused but kept for compatibility).

Jump to

Keyboard shortcuts

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