AgentStopError#

Understand request ownership, phases, and runtime limits. See the guide.

class zett_agent.exceptions.AgentStopError(stop, message=None)[源代码]#

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.

参数:
stop#

The StopInfo that explains it.

message#

The assistant message that carried it, with whatever text it had.