StopServerToolsWhenMaxCost - TypeScript SDK

StopServerToolsWhenMaxCost type definition

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

Stop once cumulative cost across the loop exceeds this dollar threshold.

Example Usage

1import { StopServerToolsWhenMaxCost } from "@openrouter/sdk/models";
2
3let value: StopServerToolsWhenMaxCost = {
4 maxCostInDollars: 7287.97,
5 type: "max_cost",
6};

Fields

FieldTypeRequiredDescription
maxCostInDollarsnumber✔️N/A
type”max_cost”✔️N/A