@getdial/sdk - v0.21.0
Python SDK
AI SDK
getdial.ai
Preparing search index...
serializeServerMessage
Function serializeServerMessage
serializeServerMessage
(
message
:
|
{
timestamp
:
number
;
type
:
"ping_pong"
}
|
{
content
:
string
;
content_complete
:
boolean
;
end_call
?:
boolean
;
response_id
:
number
;
type
:
"response"
;
}
|
{
content
:
string
;
content_complete
:
boolean
;
end_call
?:
boolean
;
type
:
"interrupt"
;
}
,
)
:
string
Validate + serialize an outbound frame to a JSON string.
Parameters
message
:
|
{
timestamp
:
number
;
type
:
"ping_pong"
}
|
{
content
:
string
;
content_complete
:
boolean
;
end_call
?:
boolean
;
response_id
:
number
;
type
:
"response"
;
}
|
{
content
:
string
;
content_complete
:
boolean
;
end_call
?:
boolean
;
type
:
"interrupt"
;
}
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Python SDK
AI SDK
getdial.ai
@getdial/sdk - v0.21.0
Loading...
Validate + serialize an outbound frame to a JSON string.