Prompt Template API
api_delete_prompt_template(pt_id)
Deletes a prompt template by its identifier.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pt_id |
str
|
The unique identifier of the prompt template to be deleted. |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True if the prompt template was successfully deleted. |
Raises:
Type | Description |
---|---|
Exception
|
If the deletion process encounters an error. |
Source code in moonshot/src/api/api_prompt_template.py
api_get_all_prompt_template_detail()
Retrieves all available prompt template details and returns them as a list of dictionaries.
Returns:
Type | Description |
---|---|
list[dict]
|
list[dict]: A list of dictionaries, each representing the details of a prompt template. |
Source code in moonshot/src/api/api_prompt_template.py
api_get_all_prompt_template_name()
Retrieves all available prompt template names and returns them as a list.
Returns:
Type | Description |
---|---|
list[str]
|
list[str]: A list of prompt template names. |