AgentStopError#
Understand request ownership, phases, and runtime limits. See the guide.
- class zett_agent.exceptions.AgentStopError(stop, message=None)[source]#
A model step ended for a reason other than finishing, and the caller asked to be told.
Raised by
raise_for_stop(). The runtime itself never raises it: a refusal or a truncated answer is a normal outcome that arrives as a message and an event, so a host that does not look still gets the conversation back.- Parameters:
stop (StopInfo)
message (AssistantMessage | None)
- message#
The assistant message that carried it, with whatever text it had.