Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Stop after the agent loop has executed this many steps.

Example Usage

import { StopServerToolsWhenStepCountIs } from "@openrouter/sdk/models";

let value: StopServerToolsWhenStepCountIs = {
  stepCount: 5,
  type: "step_count_is",
};

Fields

FieldTypeRequiredDescription
stepCountnumber:heavy_check_mark:N/A
type”step_count_is”:heavy_check_mark:N/A