Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.53 KB

SseEventTextMessageStartData.md

File metadata and controls

33 lines (24 loc) · 1.53 KB

SseEventTextMessageStartData

The event envelope, sent as the JSON of the SSE data line. Its type names the event, and its data is that event's payload.

Properties

Name Type Description Notes
data TextMessageStartData The payload of the event named in type.
event_id int The stored event's ID, the same as the SSE id field. Pass the last one received as last_event_id to resume after a reconnection.
source_run_id str [optional]
type str The event name, the same as the SSE event field.

Example

from revengai.models.sse_event_text_message_start_data import SseEventTextMessageStartData

# TODO update the JSON string below
json = "{}"
# create an instance of SseEventTextMessageStartData from a JSON string
sse_event_text_message_start_data_instance = SseEventTextMessageStartData.from_json(json)
# print the JSON string representation of the object
print(SseEventTextMessageStartData.to_json())

# convert the object into a dict
sse_event_text_message_start_data_dict = sse_event_text_message_start_data_instance.to_dict()
# create an instance of SseEventTextMessageStartData from a dict
sse_event_text_message_start_data_from_dict = SseEventTextMessageStartData.from_dict(sse_event_text_message_start_data_dict)

[Back to Model list] [Back to API list] [Back to README]