🎉 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.
Body
The input values. This is required if the inputs
parameter was specified
when creating a prompt. Each input value has a 500000
character limit
If set, partial message chunk will be sent.
Response
Indicates whether the call was successful.
Usage information for the API call. Number of input tokens processed.
Number of output tokens generated.
Number of tokens processed during inference time.
Total number of tokens used (input + output).
Javascript
Python
Curl
PHP
Ruby
Go
Java
Swift
Dart
Kotlin
C#
import { JigsawStack } from "jigsawstack" ;
const jigsaw = JigsawStack ({ apiKey: "your-api-key" });
const response = await jigsaw . prompt_engine . run ({
"input_values" : {
"text" : "How to get started with JigsawStack?"
},
"id" : "0073d008-da9b-4c27-90a8-0240f3ecd4f5"
})
{
"success" : true ,
"result" : {
"outline" : [
{
"section" : "Introduction to JigsawStack"
},
{
"section" : "Prerequisites"
},
{
"section" : "Installation and Setup"
},
{
"section" : "Creating Your First Project"
},
{
"section" : "Understanding the JigsawStack Architecture"
},
{
"section" : "Basic JigsawStack Commands"
},
{
"section" : "Exploring JigsawStack Features"
},
{
"section" : "Troubleshooting Common Issues"
},
{
"section" : "Next Steps and Resources"
}
]
},
"_usage" : {
"input_tokens" : 17 ,
"output_tokens" : 104 ,
"inference_time_tokens" : 1681 ,
"total_tokens" : 1802
}
}