Type Alias: LLMChatTurnResult
LLMChatTurnResult =
object
Defined in: extensions/llm/tasks/llmChatSession.ts:85
Result returned by an LLM chat turn.
Properties
finishReason
readonlyfinishReason:"stop"|"cancelled"|"maxToolTurns"
Defined in: extensions/llm/tasks/llmChatSession.ts:96
Reason why the chat turn completed.
stop: The model completed its answer naturally without further tool calls.cancelled: The session was stopped and the current turn was discarded.maxToolTurns: The turn was terminated because it reachedmaxToolTurns.
messages
readonlymessages: readonlyChatMessage[]
Defined in: extensions/llm/tasks/llmChatSession.ts:87
The messages added to history during this chat turn.
stats
readonlystats: readonlyLLMGenerationStats[]
Defined in: extensions/llm/tasks/llmChatSession.ts:89
Generation performance statistics for each generation step in this turn.