import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.session_debug.get_session_data_by_sid(channel_manager_service="<value>", channel_manager_sid="<id>")
# Handle response
print(res){
"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 os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.session_debug.get_session_data_by_sid(channel_manager_service="<value>", channel_manager_sid="<id>")
# Handle response
print(res){
"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
Session ID
Session source
Session target
Is test session
Session messages
Show child attributes
Dialog role
agent, user Tool calls
Show child attributes
Tool call ID
Tool name
Tool arguments
Tool result data (only included if tool has propagate_tool_result=true)
{
"answer": "Syllable is a platform for building and managing AI voice agents..."
}Tool call timestamp
Message timestamp