Exceptions
ContextOverflowError means the request input does not fit the model context,
so Agent may shorten the conversation and retry. OutputTokenLimitError means
the provider exhausted the configured max_tokens response budget. An output
limit failure surfaces without summarization or retry with the unchanged limit.
IncompleteResponseError means the provider stopped for some other reason, such as
a content filter; it also surfaces without retry.
stirrup.core.exceptions
Custom exceptions for agent framework.
__all__
module-attribute
ContextOverflowError
Bases: Exception
Raised when request input exceeds the model's context capacity.
IncompleteResponseError
Bases: Exception
Raised when a provider returns an incomplete response Stirrup cannot recover from.
Covers stop reasons other than the context and output-budget cases, such as a content filter. Retrying the same request is not expected to help.
OutputTokenLimitError
Bases: Exception
Raised when a provider exhausts the configured response-token budget.