MCPcopy
hub / github.com/googleapis/mcp-toolbox / PromptConfigFactory

FuncType PromptConfigFactory

internal/prompts/prompts.go:27–27  ·  view source on GitHub ↗

PromptConfigFactory defines the signature for a function that creates and decodes a specific prompt's configuration.

func(ctx context.Context, name string, decoder *yaml.Decoder) (PromptConfig, error)

Source from the content-addressed store, hash-verified

25// PromptConfigFactory defines the signature for a function that creates and
26// decodes a specific prompt's configuration.
27type PromptConfigFactory func(ctx context.Context, name string, decoder *yaml.Decoder) (PromptConfig, error)
28
29var promptRegistry = make(map[string]PromptConfigFactory)
30

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected