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 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
Click to show internal directories.
Click to hide internal directories.