userprompt

package
v1.57.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ToolNameUserPrompt = "user_prompt"

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Message string         `json:"message" jsonschema:"The message/question to display to the user"`
	Title   string         `json:"title,omitempty" jsonschema:"Optional title for the dialog window (defaults to 'Question')"`
	Schema  map[string]any `` /* 157-byte string literal not displayed */
}

type Response

type Response struct {
	Action  string         `json:"action" jsonschema:"The user action: accept, decline, or cancel"`
	Content map[string]any `json:"content,omitempty" jsonschema:"The user response data (only present when action is accept)"`
}

type Tool

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

func NewUserPromptTool

func NewUserPromptTool() *Tool

func (*Tool) Instructions

func (t *Tool) Instructions() string

func (*Tool) SetElicitationHandler

func (t *Tool) SetElicitationHandler(handler tools.ElicitationHandler)

func (*Tool) Tools

func (t *Tool) Tools(context.Context) ([]tools.Tool, error)

Jump to

Keyboard shortcuts

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