"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations from openrouter.types import BaseModel from typing import Literal from typing_extensions import TypedDict StopServerToolsWhenMaxCostType = Literal["max_cost",] class StopServerToolsWhenMaxCostTypedDict(TypedDict): r"""Stop once cumulative cost across the loop exceeds this dollar threshold.""" max_cost_in_dollars: float type: StopServerToolsWhenMaxCostType class StopServerToolsWhenMaxCost(BaseModel): r"""Stop once cumulative cost across the loop exceeds this dollar threshold.""" max_cost_in_dollars: float type: StopServerToolsWhenMaxCostType