ErrorCode - TypeScript SDK

ErrorCode type definition

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

Example Usage

1import { ErrorCode } from "@openrouter/sdk/models";
2
3let value: ErrorCode = "too_many_requests";
4
5// Open enum: unrecognized values are captured as Unrecognized<string>

Values

1"invalid_tool_input" | "unavailable" | "max_uses_exceeded" | "too_many_requests" | "query_too_long" | Unrecognized<string>