Skip to main content

Module prompt

Module prompt 

Source
Expand description

Prompt CLI command.

Provides subcommands for managing user-defined prompt templates.

Structsยง

PromptCommand
Prompt command handler.
SavePromptArgs
Arguments for the prompt save command.

Enumsยง

OutputFormat
Output format for prompt commands.

Functionsยง

build_partial_metadata ๐Ÿ”’
Builds partial metadata from user-provided values.
build_share_content ๐Ÿ”’
Builds shareable content with full metadata.
build_template_from_input ๐Ÿ”’
Builds a template from the various input sources.
cmd_prompt_delete
Executes the prompt delete subcommand.
cmd_prompt_export
Executes the prompt export subcommand.
cmd_prompt_get
Executes the prompt get subcommand.
cmd_prompt_import
Executes the prompt import subcommand.
cmd_prompt_list
Executes the prompt list subcommand.
cmd_prompt_run
Executes the prompt run subcommand.
cmd_prompt_save
Executes the prompt save subcommand (legacy interface).
cmd_prompt_save_with_args
Executes the prompt save subcommand.
cmd_prompt_share
Executes the prompt share subcommand.
create_prompt_service ๐Ÿ”’
Creates a PromptService with full config loaded.
determine_export_format ๐Ÿ”’
Determines export format from explicit format or file extension.
domain_scope_to_display ๐Ÿ”’
Converts domain scope to display string.
find_missing_variables ๐Ÿ”’
Finds missing required variables.
format_timestamp ๐Ÿ”’
Formats a Unix timestamp as a full datetime string.
format_timestamp_short ๐Ÿ”’
Formats a Unix timestamp as a short date string.
format_variables_summary ๐Ÿ”’
Formats a summary of variables for display.
infer_format_from_path ๐Ÿ”’
Infers the prompt format from a file path or URL extension.
load_template_from_source ๐Ÿ”’
Loads a template from a file path or URL.
parse_domain_scope ๐Ÿ”’
Parses domain scope from string.
print_prompts_table ๐Ÿ”’
Prints prompts in table format.
print_template_details ๐Ÿ”’
Prints template details in human-readable format.
prompt_for_variables ๐Ÿ”’
Prompts interactively for variable values.
validate_template ๐Ÿ”’
Validates a template for required fields and variable syntax.