prompt

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package prompt dispatches MCP prompt list and get requests to the appropriate builders.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DispatchGet

func DispatchGet(
	h *handler.Handler, req proto.Request,
) *proto.Response

DispatchGet unmarshals prompt params and dispatches to the appropriate prompt builder.

Parameters:

  • h: handler for context directory and session state
  • req: the MCP request containing prompt name and arguments

Returns:

  • *proto.Response: rendered prompt or error

func DispatchList

func DispatchList(req proto.Request) *proto.Response

DispatchList returns all available prompts.

Parameters:

  • req: the MCP request

Returns:

  • *proto.Response: prompt list response

Types

This section is empty.

Jump to

Keyboard shortcuts

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