Class: ActionMCP::PromptsRegistry
- Inherits:
-
RegistryBase
- Object
- RegistryBase
- ActionMCP::PromptsRegistry
- Defined in:
- lib/action_mcp/prompts_registry.rb
Overview
Registry for managing prompts.
Class Method Summary collapse
- .item_klass ⇒ Object
-
.prompt_call(prompt_name, arguments) ⇒ Hash
Calls a prompt with the given name and arguments.
Methods inherited from RegistryBase
clear!, find, items, non_abstract, re_register, register, size, unregister
Class Method Details
.item_klass ⇒ Object
24 25 26 |
# File 'lib/action_mcp/prompts_registry.rb', line 24 def item_klass Prompt end |
.prompt_call(prompt_name, arguments) ⇒ Hash
Calls a prompt with the given name and arguments.
17 18 19 20 21 22 |
# File 'lib/action_mcp/prompts_registry.rb', line 17 def prompt_call(prompt_name, arguments) prompt = find(prompt_name) prompt = prompt.new(arguments) prompt.call end |