Skip to main content
Version: 0.10.0

Type Alias: LLMChatTurnResult

LLMChatTurnResult = object

Defined in: extensions/llm/tasks/llmChatSession.ts:83

Result returned by an LLM chat turn.

Properties

finishReason

readonly finishReason: "stop" | "maxToolTurns"

Defined in: extensions/llm/tasks/llmChatSession.ts:93

Reason why the chat turn completed.

  • stop: The model completed its answer naturally without further tool calls.
  • maxToolTurns: The turn was terminated because it reached maxToolTurns.

messages

readonly messages: readonly ChatMessage[]

Defined in: extensions/llm/tasks/llmChatSession.ts:85

The messages added to history during this chat turn.


stats

readonly stats: readonly LLMGenerationStats[]

Defined in: extensions/llm/tasks/llmChatSession.ts:87

Generation performance statistics for each generation step in this turn.