io.enterpriseai.SseEvent
Source: sdks/java/enterprise-ai-java/src/main/java/io/enterpriseai/SseEvent.java. Back to the Java SDK reference index.
note
This page is generated by tools/docs/gen_sdk_reference.py from the SDK sources and the OpenAPI text folders. Do not edit it by hand: change the source and regenerate.
Model SseEvent
One Server-Sent Event.
Fields:
| Name | Type | Required | Description |
|---|---|---|---|
event | String | yes | event name (message when absent) |
data | String | yes | Data lines of the event joined with a newline. |
id | String | yes | last event id or null |
SseEvent.json
JsonNode json()
Parses #data() as JSON.
This element takes no parameter.
Returns: JsonNode. The JsonNode of the data; IllegalStateException when they are not JSON.
Raises: IllegalStateException.