client

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PromptsCmd = &cobra.Command{
	Use:   "prompts",
	Short: "Interact with prompts",
	Long:  `List available prompts and execute specific prompts.`,
}

PromptsCmd handles the "prompts" command group

View Source
var ResourcesCmd = &cobra.Command{
	Use:   "resources",
	Short: "Interact with resources",
	Long:  `List available resources and read specific resources.`,
}

ResourcesCmd handles the "resources" command group

View Source
var ToolsCmd = &cobra.Command{
	Use:   "tools",
	Short: "Interact with tools",
	Long:  `List available tools and execute specific tools.`,
}

ToolsCmd handles the "tools" command group

Functions

This section is empty.

Types

type CallToolCommand

type CallToolCommand struct {
	*cmds.CommandDescription
}

func NewCallToolCommand

func NewCallToolCommand() (*CallToolCommand, error)

func (*CallToolCommand) RunIntoGlazeProcessor added in v0.0.14

func (c *CallToolCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *glazed_layers.ParsedLayers,
	gp middlewares.Processor,
) error

Structured output for call tool

func (*CallToolCommand) RunIntoWriter

func (c *CallToolCommand) RunIntoWriter(
	ctx context.Context,
	parsedLayers *glazed_layers.ParsedLayers,
	w io.Writer,
) error

type CallToolSettings

type CallToolSettings struct {
	ToolName string                 `glazed.parameter:"tool-name"`
	JSON     string                 `glazed.parameter:"json"`
	Args     map[string]interface{} `glazed.parameter:"args"`
}

type ExecutePromptCommand

type ExecutePromptCommand struct {
	*cmds.CommandDescription
}

func NewExecutePromptCommand

func NewExecutePromptCommand() (*ExecutePromptCommand, error)

func (*ExecutePromptCommand) RunIntoGlazeProcessor added in v0.0.14

func (c *ExecutePromptCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *glazed_layers.ParsedLayers,
	gp middlewares.Processor,
) error

func (*ExecutePromptCommand) RunIntoWriter

func (c *ExecutePromptCommand) RunIntoWriter(
	ctx context.Context,
	parsedLayers *glazed_layers.ParsedLayers,
	w io.Writer,
) error

type ExecutePromptSettings

type ExecutePromptSettings struct {
	Args       string `glazed.parameter:"args"`
	PromptName string `glazed.parameter:"prompt-name"`
}

type ListPromptsCommand

type ListPromptsCommand struct {
	*cmds.CommandDescription
}

func NewListPromptsCommand

func NewListPromptsCommand() (*ListPromptsCommand, error)

func (*ListPromptsCommand) RunIntoGlazeProcessor

func (c *ListPromptsCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *glazed_layers.ParsedLayers,
	gp middlewares.Processor,
) error

func (*ListPromptsCommand) RunIntoWriter added in v0.0.14

func (c *ListPromptsCommand) RunIntoWriter(
	ctx context.Context,
	parsedLayers *glazed_layers.ParsedLayers,
	w io.Writer,
) error

type ListResourcesCommand

type ListResourcesCommand struct {
	*cmds.CommandDescription
}

func NewListResourcesCommand

func NewListResourcesCommand() (*ListResourcesCommand, error)

func (*ListResourcesCommand) RunIntoGlazeProcessor

func (c *ListResourcesCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *glazed_layers.ParsedLayers,
	gp middlewares.Processor,
) error

func (*ListResourcesCommand) RunIntoWriter added in v0.0.14

func (c *ListResourcesCommand) RunIntoWriter(
	ctx context.Context,
	parsedLayers *glazed_layers.ParsedLayers,
	w io.Writer,
) error

type ListResourcesSettings

type ListResourcesSettings struct {
}

type ListToolsCommand

type ListToolsCommand struct {
	*cmds.CommandDescription
}

func NewListToolsCommand

func NewListToolsCommand() (*ListToolsCommand, error)

func (*ListToolsCommand) RunIntoGlazeProcessor

func (c *ListToolsCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *glazed_layers.ParsedLayers,
	gp middlewares.Processor,
) error

Glaze output (structured)

func (*ListToolsCommand) RunIntoWriter added in v0.0.14

func (c *ListToolsCommand) RunIntoWriter(
	ctx context.Context,
	parsedLayers *glazed_layers.ParsedLayers,
	w io.Writer,
) error

Human-readable default output

type ListToolsSettings

type ListToolsSettings struct {
}

type ReadResourceCommand

type ReadResourceCommand struct {
	*cmds.CommandDescription
}

func NewReadResourceCommand

func NewReadResourceCommand() (*ReadResourceCommand, error)

func (*ReadResourceCommand) RunIntoGlazeProcessor added in v0.0.14

func (c *ReadResourceCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *glazed_layers.ParsedLayers,
	gp middlewares.Processor,
) error

func (*ReadResourceCommand) RunIntoWriter

func (c *ReadResourceCommand) RunIntoWriter(
	ctx context.Context,
	parsedLayers *glazed_layers.ParsedLayers,
	w io.Writer,
) error

type ReadResourceSettings

type ReadResourceSettings struct {
	URI string `glazed.parameter:"uri"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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