upsert-prompt
Create or update prompts with templates and model configurations for consistent AI-driven outputs. Manage prompts efficiently for tasks like email generation or content creation.
Instructions
Create or update a prompt with its template and configuration. Creates a new prompt and its initial version with specified model settings.
Example usage: Create a new prompt named 'email_generator' with a template for generating emails
Expected return: A confirmation message of successful prompt creation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
description | No | ||
model_name | No | gpt-4 | |
model_provider | No | OPENAI | |
name | Yes | ||
temperature | No | ||
template | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"description": {
"type": "string"
},
"model_name": {
"default": "gpt-4",
"type": "string"
},
"model_provider": {
"default": "OPENAI",
"enum": [
"OPENAI",
"AZURE_OPENAI",
"ANTHROPIC",
"GOOGLE"
],
"type": "string"
},
"name": {
"type": "string"
},
"temperature": {
"default": 0.7,
"type": "number"
},
"template": {
"type": "string"
}
},
"required": [
"name",
"template"
],
"type": "object"
}