OptionalcauseReadonlyPromptName of the prompt whose TimeoutMS was exceeded.
OptionalstackReadonlyTimeoutThe configured timeout, in milliseconds, that was exceeded.
Static OptionalprepareOptional override for formatting stack traces
Staticstack
Typed error thrown when a model call exceeds the prompt's configured
AIPrompt.TimeoutMS.The message intentionally contains the word "timeout" so that ErrorAnalyzer classifies it as a
NetworkError(severityRetriable,canFailover: true) — meaning a timed-out model call participates in the normal failover/retry machinery exactly like a hung socket would, instead of silently hanging.Callers that need to distinguish a configured-timeout abort from any other network failure can do so structurally via
instanceof AIPromptTimeoutError(or by checkingname, which survives a serialization round-trip).