StopServerToolsWhenFinishReasonIs - TypeScript SDK

StopServerToolsWhenFinishReasonIs type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Stop when the upstream model emits this finish reason (e.g. length).

Example Usage

1import { StopServerToolsWhenFinishReasonIs } from "@openrouter/sdk/models";
2
3let value: StopServerToolsWhenFinishReasonIs = {
4 reason: "<value>",
5 type: "finish_reason_is",
6};

Fields

FieldTypeRequiredDescription
reasonstring✔️N/A
type”finish_reason_is”✔️N/A