import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.sessions.transcript.getById({
sessionId: "<id>",
});
console.log(result);
}
run();{
"session_id": "<string>",
"transcription": [
{
"timestamp": "2023-11-07T05:31:56Z",
"lang": "en-US",
"source": "user",
"text": "<string>"
}
],
"actions": [
{
"timestamp": "2023-11-07T05:31:56Z",
"tool_name": "<string>",
"tool_request": "<string>",
"tool_result": "<string>",
"tool_error": "<string>"
}
]
}import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.sessions.transcript.getById({
sessionId: "<id>",
});
console.log(result);
}
run();{
"session_id": "<string>",
"transcription": [
{
"timestamp": "2023-11-07T05:31:56Z",
"lang": "en-US",
"source": "user",
"text": "<string>"
}
],
"actions": [
{
"timestamp": "2023-11-07T05:31:56Z",
"tool_name": "<string>",
"tool_request": "<string>",
"tool_result": "<string>",
"tool_error": "<string>"
}
]
}Successful Response
Text transcript of a given session. For more information, see Console docs.