public class LLMResponse extends Object:
Response returned by an LLM provider.
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | completionTokenscompletionTokens as Int |
Completion tokens generated by the provider for this response. |
| public readonly property | messagemessage as LLMThreadMessage |
Assistant message returned by the provider. |
| public readonly property | promptTokenspromptTokens as Int |
Prompt tokens consumed by the provider for this response. |
| public readonly property | toolCalls | Optional tool calls requested by the provider. |
| public readonly property | totalTokenstotalTokens as Int |
Total tokens reported by the provider for this response. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | LLMResponseLLMResponse(message as LLMThreadMessage, toolCalls as Object = null, promptTokens as Int = 0, completionTokens as Int = 0, totalTokens as Int = 0): |
Creates a provider response. |