Class LlmCall (0.89.0)

public final class LlmCall extends GeneratedMessageV3 implements LlmCallOrBuilder

Stores metadata of the call of an LLM.

Protobuf type google.cloud.dialogflow.cx.v3beta1.LlmCall

Implements

LlmCallOrBuilder

Static Fields

MODEL_FIELD_NUMBER

public static final int MODEL_FIELD_NUMBER
Field Value
Type Description
int

RETRIEVED_EXAMPLES_FIELD_NUMBER

public static final int RETRIEVED_EXAMPLES_FIELD_NUMBER
Field Value
Type Description
int

TEMPERATURE_FIELD_NUMBER

public static final int TEMPERATURE_FIELD_NUMBER
Field Value
Type Description
int

TOKEN_COUNT_FIELD_NUMBER

public static final int TOKEN_COUNT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LlmCall getDefaultInstance()
Returns
Type Description
LlmCall

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static LlmCall.Builder newBuilder()
Returns
Type Description
LlmCall.Builder

newBuilder(LlmCall prototype)

public static LlmCall.Builder newBuilder(LlmCall prototype)
Parameter
Name Description
prototype LlmCall
Returns
Type Description
LlmCall.Builder

parseDelimitedFrom(InputStream input)

public static LlmCall parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LlmCall
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LlmCall parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LlmCall
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LlmCall parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LlmCall
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LlmCall parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LlmCall
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LlmCall parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LlmCall
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LlmCall parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LlmCall
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LlmCall parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LlmCall
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LlmCall parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LlmCall
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LlmCall parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LlmCall
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LlmCall parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LlmCall
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LlmCall parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LlmCall
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LlmCall parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LlmCall
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LlmCall> parser()
Returns
Type Description
Parser<LlmCall>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public LlmCall getDefaultInstanceForType()
Returns
Type Description
LlmCall

getModel()

public String getModel()

The model of the LLM call.

string model = 3;

Returns
Type Description
String

The model.

getModelBytes()

public ByteString getModelBytes()

The model of the LLM call.

string model = 3;

Returns
Type Description
ByteString

The bytes for model.

getParserForType()

public Parser<LlmCall> getParserForType()
Returns
Type Description
Parser<LlmCall>
Overrides

getRetrievedExamples(int index)

public LlmCall.RetrievedExample getRetrievedExamples(int index)

A list of relevant examples used for the LLM prompt.

repeated .google.cloud.dialogflow.cx.v3beta1.LlmCall.RetrievedExample retrieved_examples = 1;

Parameter
Name Description
index int
Returns
Type Description
LlmCall.RetrievedExample

getRetrievedExamplesCount()

public int getRetrievedExamplesCount()

A list of relevant examples used for the LLM prompt.

repeated .google.cloud.dialogflow.cx.v3beta1.LlmCall.RetrievedExample retrieved_examples = 1;

Returns
Type Description
int

getRetrievedExamplesList()

public List<LlmCall.RetrievedExample> getRetrievedExamplesList()

A list of relevant examples used for the LLM prompt.

repeated .google.cloud.dialogflow.cx.v3beta1.LlmCall.RetrievedExample retrieved_examples = 1;

Returns
Type Description
List<RetrievedExample>

getRetrievedExamplesOrBuilder(int index)

public LlmCall.RetrievedExampleOrBuilder getRetrievedExamplesOrBuilder(int index)

A list of relevant examples used for the LLM prompt.

repeated .google.cloud.dialogflow.cx.v3beta1.LlmCall.RetrievedExample retrieved_examples = 1;

Parameter
Name Description
index int
Returns
Type Description
LlmCall.RetrievedExampleOrBuilder

getRetrievedExamplesOrBuilderList()

public List<? extends LlmCall.RetrievedExampleOrBuilder> getRetrievedExamplesOrBuilderList()

A list of relevant examples used for the LLM prompt.

repeated .google.cloud.dialogflow.cx.v3beta1.LlmCall.RetrievedExample retrieved_examples = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3beta1.LlmCall.RetrievedExampleOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTemperature()

public float getTemperature()

The temperature of the LLM call.

float temperature = 4;

Returns
Type Description
float

The temperature.

getTokenCount()

public LlmCall.TokenCount getTokenCount()

The token counts of the LLM call.

.google.cloud.dialogflow.cx.v3beta1.LlmCall.TokenCount token_count = 2;

Returns
Type Description
LlmCall.TokenCount

The tokenCount.

getTokenCountOrBuilder()

public LlmCall.TokenCountOrBuilder getTokenCountOrBuilder()

The token counts of the LLM call.

.google.cloud.dialogflow.cx.v3beta1.LlmCall.TokenCount token_count = 2;

Returns
Type Description
LlmCall.TokenCountOrBuilder

hasTokenCount()

public boolean hasTokenCount()

The token counts of the LLM call.

.google.cloud.dialogflow.cx.v3beta1.LlmCall.TokenCount token_count = 2;

Returns
Type Description
boolean

Whether the tokenCount field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LlmCall.Builder newBuilderForType()
Returns
Type Description
LlmCall.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LlmCall.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LlmCall.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public LlmCall.Builder toBuilder()
Returns
Type Description
LlmCall.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException