import { JigsawStack } from "jigsawstack";const jigsaw = JigsawStack({ apiKey: "your-api-key" });const response = await jigsaw.prompt_engine.create({ "prompt": "Tell me a story about {about}", "inputs": [ { "key": "about", "optional": false, "initial_value": "Leaning Tower of Pisa" } ], "return_prompt": "Return the result in a markdown format", "prompt_guard": [ "sexual_content", "defamation" ]})
Copy
{ "success": true, "prompt_engine_id": "0317e3c5-b441-42de-9bce-19d76812e459", "optimized_prompt": "Please write a detailed and engaging story about {about}, including vivid descriptions, well-developed characters, and a clear beginning, middle, and end.", "_usage": { "input_tokens": 58, "output_tokens": 63, "inference_time_tokens": 1018, "total_tokens": 1139 }}
🎉 Exciting News! We’ve enhanced Prompt Engine with powerful new capabilities. Meet Interfaze - our advanced LLM that takes your AI workflows to the next level, built for debvelopers, with improved performance
better organization, and enhanced features.
{ prompt: "Tell me a story about {about}", inputs: [ { key: "about", optional: false, initial_value: "Leaning Tower of Pisa", }, ], return_prompt: "Return the result in a markdown format", "prompt_guard": ["sexual_content", "defamation"] }
Array<object>return_prompt
Copy
{ prompt: "Tell me a story about {about}", inputs: [ { key: "about", optional: "false", initial_value: "Leaning Tower of Pisa", }, ], return_prompt: [{ excerpt: "short story text", summary: "summary of story" }], "prompt_guard": ["sexual_content", "defamation"] }
Object return_prompt
Copy
{ prompt: "Tell me a story about {about}", inputs: [ { key: "about", optional: false, initial_value: "Leaning Tower of Pisa", }, ], return_prompt: { excerpt: "short story text", summary: "summary of story" }, "prompt_guard": ["sexual_content", "defamation"] }
import { JigsawStack } from "jigsawstack";const jigsaw = JigsawStack({ apiKey: "your-api-key" });const response = await jigsaw.prompt_engine.create({ "prompt": "Tell me a story about {about}", "inputs": [ { "key": "about", "optional": false, "initial_value": "Leaning Tower of Pisa" } ], "return_prompt": "Return the result in a markdown format", "prompt_guard": [ "sexual_content", "defamation" ]})
Copy
{ "success": true, "prompt_engine_id": "0317e3c5-b441-42de-9bce-19d76812e459", "optimized_prompt": "Please write a detailed and engaging story about {about}, including vivid descriptions, well-developed characters, and a clear beginning, middle, and end.", "_usage": { "input_tokens": 58, "output_tokens": 63, "inference_time_tokens": 1018, "total_tokens": 1139 }}
import { JigsawStack } from "jigsawstack";const jigsaw = JigsawStack({ apiKey: "your-api-key" });const response = await jigsaw.prompt_engine.create({ "prompt": "Tell me a story about {about}", "inputs": [ { "key": "about", "optional": false, "initial_value": "Leaning Tower of Pisa" } ], "return_prompt": "Return the result in a markdown format", "prompt_guard": [ "sexual_content", "defamation" ]})
Copy
{ "success": true, "prompt_engine_id": "0317e3c5-b441-42de-9bce-19d76812e459", "optimized_prompt": "Please write a detailed and engaging story about {about}, including vivid descriptions, well-developed characters, and a clear beginning, middle, and end.", "_usage": { "input_tokens": 58, "output_tokens": 63, "inference_time_tokens": 1018, "total_tokens": 1139 }}
Assistant
Responses are generated using AI and may contain mistakes.