import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.sessions.transcript.get_by_id(session_id="<id>")
# Handle response
print(res){
"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 os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.sessions.transcript.get_by_id(session_id="<id>")
# Handle response
print(res){
"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.
Internal ID of the session
Transcriptions of all messages in the session
Show child attributes
Timestamp of the message
ISO 639 code of the language used for the message (may appear as "unset" if was not conclusively determined)
"en-US"
Whether the user or agent sent the message
"user"
Content of the message
Tool invocations that occurred during the session
Show child attributes
Timestamp of the tool invocation
Name of the tool that was invoked
Request sent to the tool API, if applicable
Response received from the tool API, if applicable
Error received from the tool API, if applicable