Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

AgentLoopState.md

49 lines988 Bytes

Interface: AgentLoopState

Defined in: packages/ai/src/types.ts:703

State passed to agent loop strategy for determining whether to continue

Properties

finishReason

finishReason: string | null;

Defined in: packages/ai/src/types.ts:709

Finish reason from the last response


iterationCount

iterationCount: number;

Defined in: packages/ai/src/types.ts:705

Current iteration count (0-indexed)


messages

messages: ModelMessage<
  | string
  | ContentPart<unknown, unknown, unknown, unknown, unknown>[]
  | null>[];

Defined in: packages/ai/src/types.ts:707

Current messages array