import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.prompts.update({
name: "Weather Agent Prompt",
description: "Prompt for a weather agent.",
type: "prompt_v1",
context: "You are a weather agent. Answer the user's questions about weather and nothing else.",
tools: [],
llmConfig: {
apiVersion: "2024-06-01",
temperature: 1,
seed: 123,
},
sessionEndToolId: 1,
editComments: "Updated prompt text to include requirement to not answer questions that aren't about weather.",
id: 1,
});
console.log(result);
}
run();import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.prompts.update(request={
"name": "Weather Agent Prompt",
"description": "Prompt for a weather agent.",
"type": "prompt_v1",
"context": "You are a weather agent. Answer the user's questions about weather and nothing else.",
"tools": [],
"llm_config": {
"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.",
"id": 1,
})
# Handle response
print(res)curl --request PUT \
--url https://api.syllable.cloud/api/v1/prompts/ \
--header 'Content-Type: application/json' \
--header 'Syllable-API-Key: <api-key>' \
--data @- <<EOF
{
"name": "<string>",
"type": "<string>",
"llm_config": {
"provider": "azure_openai",
"model": "gpt-4o",
"version": "2024-05-13",
"api_version": "2024-06-01",
"temperature": 1,
"seed": 123
},
"id": 123,
"description": "Prompt for a weather agent.",
"context": "You are a weather agent. Answer the user's questions about weather and nothing else.",
"tools": [],
"session_end_enabled": false,
"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
}
EOFconst options = {
method: 'PUT',
headers: {'Syllable-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
type: '<string>',
llm_config: {
provider: 'azure_openai',
model: 'gpt-4o',
version: '2024-05-13',
api_version: '2024-06-01',
temperature: 1,
seed: 123
},
id: 123,
description: 'Prompt for a weather agent.',
context: 'You are a weather agent. Answer the user\'s questions about weather and nothing else.',
tools: [],
session_end_enabled: false,
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
})
};
fetch('https://api.syllable.cloud/api/v1/prompts/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.syllable.cloud/api/v1/prompts/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'type' => '<string>',
'llm_config' => [
'provider' => 'azure_openai',
'model' => 'gpt-4o',
'version' => '2024-05-13',
'api_version' => '2024-06-01',
'temperature' => 1,
'seed' => 123
],
'id' => 123,
'description' => 'Prompt for a weather agent.',
'context' => 'You are a weather agent. Answer the user\'s questions about weather and nothing else.',
'tools' => [
],
'session_end_enabled' => false,
'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
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Syllable-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.syllable.cloud/api/v1/prompts/"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"llm_config\": {\n \"provider\": \"azure_openai\",\n \"model\": \"gpt-4o\",\n \"version\": \"2024-05-13\",\n \"api_version\": \"2024-06-01\",\n \"temperature\": 1,\n \"seed\": 123\n },\n \"id\": 123,\n \"description\": \"Prompt for a weather agent.\",\n \"context\": \"You are a weather agent. Answer the user's questions about weather and nothing else.\",\n \"tools\": [],\n \"session_end_enabled\": false,\n \"session_end_tool_id\": 1,\n \"edit_comments\": \"Updated prompt text to include requirement to not answer questions that aren't about weather.\",\n \"include_default_tools\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Syllable-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.syllable.cloud/api/v1/prompts/")
.header("Syllable-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"llm_config\": {\n \"provider\": \"azure_openai\",\n \"model\": \"gpt-4o\",\n \"version\": \"2024-05-13\",\n \"api_version\": \"2024-06-01\",\n \"temperature\": 1,\n \"seed\": 123\n },\n \"id\": 123,\n \"description\": \"Prompt for a weather agent.\",\n \"context\": \"You are a weather agent. Answer the user's questions about weather and nothing else.\",\n \"tools\": [],\n \"session_end_enabled\": false,\n \"session_end_tool_id\": 1,\n \"edit_comments\": \"Updated prompt text to include requirement to not answer questions that aren't about weather.\",\n \"include_default_tools\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.syllable.cloud/api/v1/prompts/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Syllable-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"llm_config\": {\n \"provider\": \"azure_openai\",\n \"model\": \"gpt-4o\",\n \"version\": \"2024-05-13\",\n \"api_version\": \"2024-06-01\",\n \"temperature\": 1,\n \"seed\": 123\n },\n \"id\": 123,\n \"description\": \"Prompt for a weather agent.\",\n \"context\": \"You are a weather agent. Answer the user's questions about weather and nothing else.\",\n \"tools\": [],\n \"session_end_enabled\": false,\n \"session_end_tool_id\": 1,\n \"edit_comments\": \"Updated prompt text to include requirement to not answer questions that aren't about weather.\",\n \"include_default_tools\": true\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"type": "<string>",
"llm_config": {
"provider": "azure_openai",
"model": "gpt-4o",
"version": "2024-05-13",
"api_version": "2024-06-01",
"temperature": 1,
"seed": 123
},
"id": 123,
"last_updated": "2024-01-01T12:00:00Z",
"description": "Prompt for a weather agent.",
"context": "You are a weather agent. Answer the user's questions about weather and nothing else.",
"tools": [],
"session_end_enabled": false,
"session_end_tool_id": 1,
"edit_comments": "Updated prompt text to include requirement to not answer questions that aren't about weather.",
"last_updated_by": "user@email.com",
"session_end_tool": {
"name": "<string>",
"definition": {
"tool": {
"function": {
"name": "<string>",
"description": "<string>",
"parameters": "<unknown>"
},
"type": "function"
},
"type": "endpoint",
"endpoint": {
"url": "<string>",
"timeout": 45
},
"context": {
"task": {
"id": "<string>",
"config": {},
"variables": [
{
"name": "<string>",
"value": "<unknown>",
"valueFrom": "inputs.provided_dob == patient_dob",
"description": "<string>",
"title": "<string>",
"format": "<string>",
"pattern": "<string>",
"enum": [
"<string>"
],
"examples": [
"<unknown>"
]
}
],
"metadata": {
"priority": 123
},
"tool": {
"name": "<string>",
"description": "<string>"
},
"type": "expression",
"version": "v1alpha",
"inputs": [
{
"name": "<string>",
"description": "<string>",
"title": "<string>",
"format": "<string>",
"pattern": "<string>",
"enum": [
"<string>"
],
"examples": [
"<unknown>"
],
"required": true
}
],
"expression": "inputs.can_sign_consent == `true`",
"output": null,
"on": {
"start": [
{
"name": "<string>",
"value": "<unknown>",
"valueFrom": "inputs.provided_dob == patient_dob",
"if": "inputs.can_sign_consent == `true`",
"action": "set"
}
],
"submit": [
{
"name": "<string>",
"value": "<unknown>",
"valueFrom": "inputs.provided_dob == patient_dob",
"if": "inputs.can_sign_consent == `true`",
"action": "set"
}
]
}
}
},
"defaults": "<unknown>",
"static_parameters": [
{
"default": "fahrenheit",
"description": "Whether the temperature information should be fetched in Celsius or Fahrenheit",
"name": "temperature_unit",
"required": false,
"type": "string"
}
],
"result": "<unknown>",
"options": {
"propagate_tool_result": false
}
},
"service_id": 123,
"id": 123,
"last_updated": "2023-11-07T05:31:56Z",
"last_updated_by": "<string>",
"version_number": 123,
"last_updated_comments": "Updated to use new API endpoint",
"service_name": "<string>",
"prompts_info": [
{
"id": 123,
"name": "<string>"
}
],
"agents_info": [
{
"id": 123,
"name": "<string>"
}
]
},
"agent_count": 5,
"version_number": 1,
"tools_full": [
{
"name": "<string>",
"definition": {
"tool": {
"function": {
"name": "<string>",
"description": "<string>",
"parameters": "<unknown>"
},
"type": "function"
},
"type": "endpoint",
"endpoint": {
"url": "<string>",
"timeout": 45
},
"context": {
"task": {
"id": "<string>",
"config": {},
"variables": [
{
"name": "<string>",
"value": "<unknown>",
"valueFrom": "inputs.provided_dob == patient_dob",
"description": "<string>",
"title": "<string>",
"format": "<string>",
"pattern": "<string>",
"enum": [
"<string>"
],
"examples": [
"<unknown>"
]
}
],
"metadata": {
"priority": 123
},
"tool": {
"name": "<string>",
"description": "<string>"
},
"type": "expression",
"version": "v1alpha",
"inputs": [
{
"name": "<string>",
"description": "<string>",
"title": "<string>",
"format": "<string>",
"pattern": "<string>",
"enum": [
"<string>"
],
"examples": [
"<unknown>"
],
"required": true
}
],
"expression": "inputs.can_sign_consent == `true`",
"output": null,
"on": {
"start": [
{
"name": "<string>",
"value": "<unknown>",
"valueFrom": "inputs.provided_dob == patient_dob",
"if": "inputs.can_sign_consent == `true`",
"action": "set"
}
],
"submit": [
{
"name": "<string>",
"value": "<unknown>",
"valueFrom": "inputs.provided_dob == patient_dob",
"if": "inputs.can_sign_consent == `true`",
"action": "set"
}
]
}
}
},
"defaults": "<unknown>",
"static_parameters": [
{
"default": "fahrenheit",
"description": "Whether the temperature information should be fetched in Celsius or Fahrenheit",
"name": "temperature_unit",
"required": false,
"type": "string"
}
],
"result": "<unknown>",
"options": {
"propagate_tool_result": false
}
},
"service_id": 123,
"id": 123,
"last_updated": "2023-11-07T05:31:56Z",
"last_updated_by": "<string>",
"version_number": 123,
"last_updated_comments": "Updated to use new API endpoint",
"service_name": "<string>",
"prompts_info": [
{
"id": 123,
"name": "<string>"
}
],
"agents_info": [
{
"id": 123,
"name": "<string>"
}
],
"validation_issues": [
{
"id": "<string>",
"message": "<string>",
"severity": "error",
"path": "<string>",
"value": "<string>"
}
]
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Update Prompt
Update an existing prompt
import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.prompts.update({
name: "Weather Agent Prompt",
description: "Prompt for a weather agent.",
type: "prompt_v1",
context: "You are a weather agent. Answer the user's questions about weather and nothing else.",
tools: [],
llmConfig: {
apiVersion: "2024-06-01",
temperature: 1,
seed: 123,
},
sessionEndToolId: 1,
editComments: "Updated prompt text to include requirement to not answer questions that aren't about weather.",
id: 1,
});
console.log(result);
}
run();import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.prompts.update(request={
"name": "Weather Agent Prompt",
"description": "Prompt for a weather agent.",
"type": "prompt_v1",
"context": "You are a weather agent. Answer the user's questions about weather and nothing else.",
"tools": [],
"llm_config": {
"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.",
"id": 1,
})
# Handle response
print(res)curl --request PUT \
--url https://api.syllable.cloud/api/v1/prompts/ \
--header 'Content-Type: application/json' \
--header 'Syllable-API-Key: <api-key>' \
--data @- <<EOF
{
"name": "<string>",
"type": "<string>",
"llm_config": {
"provider": "azure_openai",
"model": "gpt-4o",
"version": "2024-05-13",
"api_version": "2024-06-01",
"temperature": 1,
"seed": 123
},
"id": 123,
"description": "Prompt for a weather agent.",
"context": "You are a weather agent. Answer the user's questions about weather and nothing else.",
"tools": [],
"session_end_enabled": false,
"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
}
EOFconst options = {
method: 'PUT',
headers: {'Syllable-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
type: '<string>',
llm_config: {
provider: 'azure_openai',
model: 'gpt-4o',
version: '2024-05-13',
api_version: '2024-06-01',
temperature: 1,
seed: 123
},
id: 123,
description: 'Prompt for a weather agent.',
context: 'You are a weather agent. Answer the user\'s questions about weather and nothing else.',
tools: [],
session_end_enabled: false,
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
})
};
fetch('https://api.syllable.cloud/api/v1/prompts/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.syllable.cloud/api/v1/prompts/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'type' => '<string>',
'llm_config' => [
'provider' => 'azure_openai',
'model' => 'gpt-4o',
'version' => '2024-05-13',
'api_version' => '2024-06-01',
'temperature' => 1,
'seed' => 123
],
'id' => 123,
'description' => 'Prompt for a weather agent.',
'context' => 'You are a weather agent. Answer the user\'s questions about weather and nothing else.',
'tools' => [
],
'session_end_enabled' => false,
'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
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Syllable-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.syllable.cloud/api/v1/prompts/"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"llm_config\": {\n \"provider\": \"azure_openai\",\n \"model\": \"gpt-4o\",\n \"version\": \"2024-05-13\",\n \"api_version\": \"2024-06-01\",\n \"temperature\": 1,\n \"seed\": 123\n },\n \"id\": 123,\n \"description\": \"Prompt for a weather agent.\",\n \"context\": \"You are a weather agent. Answer the user's questions about weather and nothing else.\",\n \"tools\": [],\n \"session_end_enabled\": false,\n \"session_end_tool_id\": 1,\n \"edit_comments\": \"Updated prompt text to include requirement to not answer questions that aren't about weather.\",\n \"include_default_tools\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Syllable-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.syllable.cloud/api/v1/prompts/")
.header("Syllable-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"llm_config\": {\n \"provider\": \"azure_openai\",\n \"model\": \"gpt-4o\",\n \"version\": \"2024-05-13\",\n \"api_version\": \"2024-06-01\",\n \"temperature\": 1,\n \"seed\": 123\n },\n \"id\": 123,\n \"description\": \"Prompt for a weather agent.\",\n \"context\": \"You are a weather agent. Answer the user's questions about weather and nothing else.\",\n \"tools\": [],\n \"session_end_enabled\": false,\n \"session_end_tool_id\": 1,\n \"edit_comments\": \"Updated prompt text to include requirement to not answer questions that aren't about weather.\",\n \"include_default_tools\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.syllable.cloud/api/v1/prompts/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Syllable-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"llm_config\": {\n \"provider\": \"azure_openai\",\n \"model\": \"gpt-4o\",\n \"version\": \"2024-05-13\",\n \"api_version\": \"2024-06-01\",\n \"temperature\": 1,\n \"seed\": 123\n },\n \"id\": 123,\n \"description\": \"Prompt for a weather agent.\",\n \"context\": \"You are a weather agent. Answer the user's questions about weather and nothing else.\",\n \"tools\": [],\n \"session_end_enabled\": false,\n \"session_end_tool_id\": 1,\n \"edit_comments\": \"Updated prompt text to include requirement to not answer questions that aren't about weather.\",\n \"include_default_tools\": true\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"type": "<string>",
"llm_config": {
"provider": "azure_openai",
"model": "gpt-4o",
"version": "2024-05-13",
"api_version": "2024-06-01",
"temperature": 1,
"seed": 123
},
"id": 123,
"last_updated": "2024-01-01T12:00:00Z",
"description": "Prompt for a weather agent.",
"context": "You are a weather agent. Answer the user's questions about weather and nothing else.",
"tools": [],
"session_end_enabled": false,
"session_end_tool_id": 1,
"edit_comments": "Updated prompt text to include requirement to not answer questions that aren't about weather.",
"last_updated_by": "user@email.com",
"session_end_tool": {
"name": "<string>",
"definition": {
"tool": {
"function": {
"name": "<string>",
"description": "<string>",
"parameters": "<unknown>"
},
"type": "function"
},
"type": "endpoint",
"endpoint": {
"url": "<string>",
"timeout": 45
},
"context": {
"task": {
"id": "<string>",
"config": {},
"variables": [
{
"name": "<string>",
"value": "<unknown>",
"valueFrom": "inputs.provided_dob == patient_dob",
"description": "<string>",
"title": "<string>",
"format": "<string>",
"pattern": "<string>",
"enum": [
"<string>"
],
"examples": [
"<unknown>"
]
}
],
"metadata": {
"priority": 123
},
"tool": {
"name": "<string>",
"description": "<string>"
},
"type": "expression",
"version": "v1alpha",
"inputs": [
{
"name": "<string>",
"description": "<string>",
"title": "<string>",
"format": "<string>",
"pattern": "<string>",
"enum": [
"<string>"
],
"examples": [
"<unknown>"
],
"required": true
}
],
"expression": "inputs.can_sign_consent == `true`",
"output": null,
"on": {
"start": [
{
"name": "<string>",
"value": "<unknown>",
"valueFrom": "inputs.provided_dob == patient_dob",
"if": "inputs.can_sign_consent == `true`",
"action": "set"
}
],
"submit": [
{
"name": "<string>",
"value": "<unknown>",
"valueFrom": "inputs.provided_dob == patient_dob",
"if": "inputs.can_sign_consent == `true`",
"action": "set"
}
]
}
}
},
"defaults": "<unknown>",
"static_parameters": [
{
"default": "fahrenheit",
"description": "Whether the temperature information should be fetched in Celsius or Fahrenheit",
"name": "temperature_unit",
"required": false,
"type": "string"
}
],
"result": "<unknown>",
"options": {
"propagate_tool_result": false
}
},
"service_id": 123,
"id": 123,
"last_updated": "2023-11-07T05:31:56Z",
"last_updated_by": "<string>",
"version_number": 123,
"last_updated_comments": "Updated to use new API endpoint",
"service_name": "<string>",
"prompts_info": [
{
"id": 123,
"name": "<string>"
}
],
"agents_info": [
{
"id": 123,
"name": "<string>"
}
]
},
"agent_count": 5,
"version_number": 1,
"tools_full": [
{
"name": "<string>",
"definition": {
"tool": {
"function": {
"name": "<string>",
"description": "<string>",
"parameters": "<unknown>"
},
"type": "function"
},
"type": "endpoint",
"endpoint": {
"url": "<string>",
"timeout": 45
},
"context": {
"task": {
"id": "<string>",
"config": {},
"variables": [
{
"name": "<string>",
"value": "<unknown>",
"valueFrom": "inputs.provided_dob == patient_dob",
"description": "<string>",
"title": "<string>",
"format": "<string>",
"pattern": "<string>",
"enum": [
"<string>"
],
"examples": [
"<unknown>"
]
}
],
"metadata": {
"priority": 123
},
"tool": {
"name": "<string>",
"description": "<string>"
},
"type": "expression",
"version": "v1alpha",
"inputs": [
{
"name": "<string>",
"description": "<string>",
"title": "<string>",
"format": "<string>",
"pattern": "<string>",
"enum": [
"<string>"
],
"examples": [
"<unknown>"
],
"required": true
}
],
"expression": "inputs.can_sign_consent == `true`",
"output": null,
"on": {
"start": [
{
"name": "<string>",
"value": "<unknown>",
"valueFrom": "inputs.provided_dob == patient_dob",
"if": "inputs.can_sign_consent == `true`",
"action": "set"
}
],
"submit": [
{
"name": "<string>",
"value": "<unknown>",
"valueFrom": "inputs.provided_dob == patient_dob",
"if": "inputs.can_sign_consent == `true`",
"action": "set"
}
]
}
}
},
"defaults": "<unknown>",
"static_parameters": [
{
"default": "fahrenheit",
"description": "Whether the temperature information should be fetched in Celsius or Fahrenheit",
"name": "temperature_unit",
"required": false,
"type": "string"
}
],
"result": "<unknown>",
"options": {
"propagate_tool_result": false
}
},
"service_id": 123,
"id": 123,
"last_updated": "2023-11-07T05:31:56Z",
"last_updated_by": "<string>",
"version_number": 123,
"last_updated_comments": "Updated to use new API endpoint",
"service_name": "<string>",
"prompts_info": [
{
"id": 123,
"name": "<string>"
}
],
"agents_info": [
{
"id": 123,
"name": "<string>"
}
],
"validation_issues": [
{
"id": "<string>",
"message": "<string>",
"severity": "error",
"path": "<string>",
"value": "<string>"
}
]
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
Request model to update an existing prompt.
The prompt name
"Weather Agent Prompt"
The type of the prompt
"prompt_v1"
The configuration for the LLM that the prompt uses
Show child attributes
Show child attributes
{
"model": "gpt-4o",
"provider": "openai",
"version": "2024-08-06"
}
The internal ID of the prompt
1
The description of the prompt
"Prompt for a weather agent."
The prompt text that will be sent to the LLM at the beginning of the conversation
"You are a weather agent. Answer the user's questions about weather and nothing else."
Names of tools to which the prompt has access
[]
Whether session end functionality is enabled for this prompt
false
ID of the optional session end tool associated with the prompt
1
The comments for the most recent edit to the prompt
"Updated prompt text to include requirement to not answer questions that aren't about weather."
Whether to include the default tools (hangup) in the list of tools for the prompt (also includes set_current_language if any of the agents assigned to the prompt have Dynamic Language Switching enabled). If you remove one of the default tools from your prompt, you might want to disable this option so that the tool is not added again when updated.
true
Response
Successful Response
Response model for prompt operations. A prompt defines the behavior of an agent by delivering instructions to the LLM about how the agent should behave. A prompt can be linked to one or more agents. A prompt can also be linked to tools to allow an agent using it to use those tools. For more information, see Console docs.
The prompt name
"Weather Agent Prompt"
The type of the prompt
"prompt_v1"
The configuration for the LLM that the prompt uses
Show child attributes
Show child attributes
{
"model": "gpt-4o",
"provider": "openai",
"version": "2024-08-06"
}
The internal ID of the prompt
1
The last updated date of the prompt
"2024-01-01T12:00:00Z"
The description of the prompt
"Prompt for a weather agent."
The prompt text that will be sent to the LLM at the beginning of the conversation
"You are a weather agent. Answer the user's questions about weather and nothing else."
Names of the tools to which the prompt has access (DEPRECATED - use information from full tools field instead)
"hangup"
"summary"
Whether session end functionality is enabled for this prompt
false
ID of the optional session end tool associated with the prompt
1
The comments for the most recent edit to the prompt
"Updated prompt text to include requirement to not answer questions that aren't about weather."
Email address of the user who most recently updated the prompt
"user@email.com"
The session end tool associated with the prompt
Show child attributes
Show child attributes
The number of agents using the prompt
5
The version number of the current version of the prompt
1
Full definitions of tools to which the prompt has access
Show child attributes
Show child attributes

