addMCPPrompt
Syntax
addMCPPrompt(name, message, [description], [extraInfo])
Arguments
name is a STRING scalar indicating the name of the prompt template.
message is a STRING scalar indicating the content of the prompt template. It
can contain the placeholder {}
.
description (optional) is a STRING scalar indicating the description of the prompt template.
extraInfo (optional) is a dictionary with STRING keys and ANY or STRING values used to specify additional information. Currently support "title" only.
Details
Defines an MCP prompt template.
Return value: A string indicating the name of the newly added MCP prompt template.
Examples
addMCPPrompt(
name = "stock_summary",
message = "Summary the trend of ${stock} from ${startDate} to ${endDate}.",
description = "Generate a natural-language overview of a stock over a time period",
extraInfo = {title : "Stock Trend Summary"}
)
//output:'stock_summary'