public static interface LlmCall.TokenCountOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getConversationContextTokenCount()
public abstract long getConversationContextTokenCount()The number of tokens used for the conversation history in the prompt.
int64 conversation_context_token_count = 3;
| Returns | |
|---|---|
| Type | Description |
long |
The conversationContextTokenCount. |
getExampleTokenCount()
public abstract long getExampleTokenCount()The number of tokens used for the retrieved examples in the prompt.
int64 example_token_count = 4;
| Returns | |
|---|---|
| Type | Description |
long |
The exampleTokenCount. |
getTotalInputTokenCount()
public abstract long getTotalInputTokenCount()The total number of tokens used for the input to the LLM call.
int64 total_input_token_count = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The totalInputTokenCount. |
getTotalOutputTokenCount()
public abstract long getTotalOutputTokenCount()The total number of tokens used for the output of the LLM call.
int64 total_output_token_count = 5;
| Returns | |
|---|---|
| Type | Description |
long |
The totalOutputTokenCount. |