Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.52 KB

SseEventContextCompactedData.md

File metadata and controls

33 lines (24 loc) · 1.52 KB

SseEventContextCompactedData

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 ContextCompactedData 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_context_compacted_data import SseEventContextCompactedData

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

# convert the object into a dict
sse_event_context_compacted_data_dict = sse_event_context_compacted_data_instance.to_dict()
# create an instance of SseEventContextCompactedData from a dict
sse_event_context_compacted_data_from_dict = SseEventContextCompactedData.from_dict(sse_event_context_compacted_data_dict)

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