sessions.latency
Inspect Latency For Session
agents
agents.test
conversations
data_sources
events
incidents
insights
insights.workflows
insights.tools
custom_messages
prompts
session_labels
sessions.transcript
sessions.full-summary
sessions.latency
session_debug
channels.targets
directory
dashboards
outbound.batches
- GETList Outbound Communication Batches
- POSTCreate Outbound Communication Batch
- GETGet Outbound Communication Batch
- PUTUpdate Outbound Communication Batch
- DELDelete Outbound Communication Batch
- POSTUpload Outbound Communication Batch
- GETFetch Outbound Communication Batch Results
- POSTCreate Outbound Communication Request
- POSTDelete Requests By List Of Reference Ids
outbound.campaigns
language_groups
takeouts
sessions.latency
Inspect Latency For Session
GET
/
api
/
v1
/
sessions
/
latency
/
{session_id}
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.latency.get_by_id(session_id="<id>")
# Handle response
print(res)
{
"session_id": "<string>",
"timeline": [
{
"timestamp": "2023-11-07T05:31:56Z",
"measurement_start": "2023-11-07T05:31:56Z",
"category": "tts",
"label": "<string>",
"metadata": [
"<string>"
],
"unit_type": "minutes",
"value": 123,
"value_str": "<string>",
"time_delta": "<string>"
}
],
"summary": [
{
"category": "tts",
"sub_category": "<string>",
"event_count": 123,
"sum_ms": 123,
"sum_str": "<string>",
"average_ms": 123,
"average_str": "<string>"
}
]
}
Authorizations
Path Parameters
Response
200
application/json
Successful Response
This is a report of the time spent in each operation during this session. It contains a timeline, which lists the operations in the order they were executed, and a summary, which aggregates the operations by category and sub-category.
Data model for latency entries.
Available options:
tts
, stt
, llm
, tool
, http
Available options:
minutes
, seconds
, milliseconds
, microseconds
, nanoseconds
A summary entry is an aggregation of latency entries by category and sub-category. It contains the total and average latency for each category.
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.latency.get_by_id(session_id="<id>")
# Handle response
print(res)
{
"session_id": "<string>",
"timeline": [
{
"timestamp": "2023-11-07T05:31:56Z",
"measurement_start": "2023-11-07T05:31:56Z",
"category": "tts",
"label": "<string>",
"metadata": [
"<string>"
],
"unit_type": "minutes",
"value": 123,
"value_str": "<string>",
"time_delta": "<string>"
}
],
"summary": [
{
"category": "tts",
"sub_category": "<string>",
"event_count": 123,
"sum_ms": 123,
"sum_str": "<string>",
"average_ms": 123,
"average_str": "<string>"
}
]
}