import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.sessionDebug.getSessionDataBySessionId({
sessionId: 303182,
});
console.log(result);
}
run();{
"session_id": 123,
"source": "<string>",
"target": "<string>",
"is_test": true,
"messages": [
{
"role": "agent",
"dialog": {
"text": "<string>"
},
"tool_calls": [
{
"tool_call_id": "<string>",
"tool_name": "<string>",
"tool_arguments": "<unknown>",
"tool_result": {
"answer": "Syllable is a platform for building and managing AI voice agents..."
},
"timestamp": "2023-11-07T05:31:56Z"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
]
}import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.sessionDebug.getSessionDataBySessionId({
sessionId: 303182,
});
console.log(result);
}
run();{
"session_id": 123,
"source": "<string>",
"target": "<string>",
"is_test": true,
"messages": [
{
"role": "agent",
"dialog": {
"text": "<string>"
},
"tool_calls": [
{
"tool_call_id": "<string>",
"tool_name": "<string>",
"tool_arguments": "<unknown>",
"tool_result": {
"answer": "Syllable is a platform for building and managing AI voice agents..."
},
"timestamp": "2023-11-07T05:31:56Z"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
]
}Successful Response