remote

package
v0.0.0-...-2d053d8 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToolPingName = "ping"
	ToolPingDesc = "当用户想知道服务器是否在线时,可以使用此工具"
)

Variables

Functions

This section is empty.

Types

type ToolPing

type ToolPing struct {
	tool.InvokableTool
	// contains filtered or unexported fields
}

func Ping

func Ping(strategy strategy.GetServerCaller) *ToolPing

func (*ToolPing) Info

func (t *ToolPing) Info(_ context.Context) (*schema.ToolInfo, error)

func (*ToolPing) InvokableRun

func (t *ToolPing) InvokableRun(ctx context.Context, argumentsInJSON string, opts ...tool.Option) (string, error)

type ToolPingArgs

type ToolPingArgs struct {
	Argument string `json:"argument" desc:"填入角色设定名" required:"true"`
}

Jump to

Keyboard shortcuts

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