prompts
Create Prompt
Changed onCreate a new prompt
post/api/v1/prompts/
Request
- Base URLhttps://api.syllable.cloud
- URLhttps://api.syllable.cloud/api/v1/prompts/
- AuthAPI key in header Syllable-API-Key
Request body
Example request
{
"name": "Weather Agent Prompt",
"description": "Prompt for a weather agent.",
"labels": [
"Outbound",
"Hospital"
],
"type": "prompt_v1",
"context": "You are a weather agent. Answer the user's questions about weather and nothing else.",
"tools": [],
"llm_config": {
"model": "gpt-4o",
"version": "2024-05-13",
"api_version": "2024-06-01",
"temperature": 1,
"seed": 123
},
"session_end_tool_id": 1,
"edit_comments": "Updated prompt text to include requirement to not answer questions that aren't about weather.",
"include_default_tools": true
}Response
Successful Response
Changes
- breaking
the response's body type changed from
objectto no type for status - warning
removed the optional property
from the response with the status - info
added the new optional request property
/ - info
added to the response body
anyOflist for the response status - info
added the optional property
/to the response with the status
- breaking
- info
added the new optional request property
- info
added the optional property
to the response with the status
- info