RaiSseTextSelector Class
- java.
lang. Object - com.
azure. ai. agents. models. RaiSseTextSelector
- com.
Implements
public final class RaiSseTextSelector
implements JsonSerializable<RaiSseTextSelector>
An SSE event-type to text-field selector for streaming invocation output.
Constructor Summary
| Constructor | Description |
|---|---|
| RaiSseTextSelector(String eventType) |
Creates an instance of Rai |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Rai |
fromJson(JsonReader jsonReader)
Reads an instance of Rai |
| String |
getEventType()
Get the event |
| String |
getTextField()
Get the text |
|
Rai |
setTextField(String textField)
Set the text |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
RaiSseTextSelector
public RaiSseTextSelector(String eventType)
Creates an instance of RaiSseTextSelector class.
Parameters:
Method Details
fromJson
public static RaiSseTextSelector fromJson(JsonReader jsonReader)
Reads an instance of RaiSseTextSelector from the JsonReader.
Parameters:
Returns:
Throws:
getEventType
public String getEventType()
Get the eventType property: The SSE event `type` value that carries text.
Returns:
getTextField
public String getTextField()
Get the textField property: The field on a matched event holding the text delta. When omitted, the service defaults to `delta`.
Returns:
setTextField
public RaiSseTextSelector setTextField(String textField)
Set the textField property: The field on a matched event holding the text delta. When omitted, the service defaults to `delta`.
Parameters:
Returns: