FinishPolicy
Defined in: agents/src/types.ts:140
Opt in to a finish turn: one more model call, made instead of ending a run without its
answer. A text agent gets it with no tools. A checked-output agent, or a stopOnlyAtTools
agent, is made to call its stopping tool, at effort none with earlier reasoning left out.
Properties
Section titled “Properties”emptyTurns?
Section titled “emptyTurns?”optional emptyTurns?: number;Defined in: agents/src/types.ts:146
Turns in a row that may come back with no text and no tool call before the next one fails
the run with empty_output. Default 0.
nearEnd?
Section titled “nearEnd?”optional nearEnd?: string;Defined in: agents/src/types.ts:143
A note for the model on its last turn with tools, one before limits.turns. It stays
out of the returned history and session. No default.