RaiInvocationResponseMode Class

public final class RaiInvocationResponseMode
extends ExpandableStringEnum<RaiInvocationResponseMode>

Author-declared response shape for the invocations protocol.

Field Summary

Modifier and Type Field and Description
static final RaiInvocationResponseMode BOTH

Both non-streaming and streaming response bodies.

static final RaiInvocationResponseMode NON_STREAMING

Non-streaming response body.

static final RaiInvocationResponseMode STREAMING

Streaming response body.

Constructor Summary

Constructor Description
RaiInvocationResponseMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RaiInvocationResponseMode value.

Method Summary

Modifier and Type Method and Description
static RaiInvocationResponseMode fromString(String name)

Creates or finds a RaiInvocationResponseMode from its string representation.

static Collection<RaiInvocationResponseMode> values()

Gets known RaiInvocationResponseMode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BOTH

public static final RaiInvocationResponseMode BOTH

Both non-streaming and streaming response bodies.

NON_STREAMING

public static final RaiInvocationResponseMode NON_STREAMING

Non-streaming response body.

STREAMING

public static final RaiInvocationResponseMode STREAMING

Streaming response body.

Constructor Details

RaiInvocationResponseMode

@Deprecated
public RaiInvocationResponseMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RaiInvocationResponseMode value.

Method Details

fromString

public static RaiInvocationResponseMode fromString(String name)

Creates or finds a RaiInvocationResponseMode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding RaiInvocationResponseMode.

values

public static Collection<RaiInvocationResponseMode> values()

Gets known RaiInvocationResponseMode values.

Returns:

known RaiInvocationResponseMode values.

Applies to