tools

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotations added in v0.6.0

type Annotations = publictypes.Annotations

func NewReadOnlyAnnotations

func NewReadOnlyAnnotations() Annotations

type CallRequest

type CallRequest = publictypes.ToolCallRequest

type Definition

type Definition = publictypes.ToolDefinition

func NewDefinition

func NewDefinition(name, title, description string, annotations Annotations) Definition

type HandlerForToolWithStructuredContentOutput added in v0.7.0

type HandlerForToolWithStructuredContentOutput[ToolInput, ToolOutput any] func(ctx context.Context, request CallRequest, inputs ToolInput) (ToolOutput, i18n.Error)

type HandlerForToolWithUnstructuredContentOutput added in v0.7.0

type HandlerForToolWithUnstructuredContentOutput[ToolInput any] func(ctx context.Context, request CallRequest, inputs ToolInput) (RichContent, i18n.Error)

type RichContent

type RichContent = publictypes.RichContent

type Tool added in v0.7.0

type Tool = publictypes.Tool

func NewToolWithStructuredContentOutput added in v0.7.0

func NewToolWithStructuredContentOutput[ToolInput, ToolOutput any](definition Definition, handler HandlerForToolWithStructuredContentOutput[ToolInput, ToolOutput]) Tool

func NewToolWithUnstructuredContentOutput added in v0.7.0

func NewToolWithUnstructuredContentOutput[ToolInput any](definition Definition, handler HandlerForToolWithUnstructuredContentOutput[ToolInput]) Tool

Jump to

Keyboard shortcuts

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