Skip to main content

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:

NameTypeRequiredDescription
eventStringyesevent name (message when absent)
dataStringyesData lines of the event joined with a newline.
idStringyeslast 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.