import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.insights.tools.insightsToolTest({
toolName: "summary-tool",
sessionId: 283467,
uploadFileId: 283467,
});
console.log(result);
}
run();{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Manually run the given insight tool against a session and return the response.
import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.insights.tools.insightsToolTest({
toolName: "summary-tool",
sessionId: 283467,
uploadFileId: 283467,
});
console.log(result);
}
run();{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Request model to test an insight tool.
Human readable name of insight tool configuration
"summary-tool"
The session ID of the session against which to run the tool
"283467"
The file ID of the uploaded file against which to run the tool
"283467"
Successful Response