LLMResponse
classin packageklyn.llm
public class LLMResponse extends Object:
└ LLMResponse

Response returned by an LLM provider.

Properties
Modifier and Type Member Description
public readonly property completionTokens
completionTokens as Int
Completion tokens generated by the provider for this response.
public readonly property message
message as LLMThreadMessage
Assistant message returned by the provider.
public readonly property promptTokens
promptTokens as Int
Prompt tokens consumed by the provider for this response.
public readonly property toolCalls
toolCalls as ArrayList<ToolCall>
Optional tool calls requested by the provider.
public readonly property totalTokens
totalTokens as Int
Total tokens reported by the provider for this response.
Properties inherited from Object: type
Constructors
Modifier and Type Member Description
public LLMResponse
LLMResponse(message as LLMThreadMessage, toolCalls as Object = null, promptTokens as Int = 0, completionTokens as Int = 0, totalTokens as Int = 0):
Creates a provider response.
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml