AgentResumeError#

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

class zett_agent.exceptions.AgentResumeError(reason, message)[source]#

A session has nothing that can be resumed, or what it has cannot be picked up again.

Raised by resume(). resume_point() reports the same cases as None, so a host can decide whether to offer a resume before it asks for one.

Parameters:
  • reason (str)

  • message (str)

reason#

Why, as one of "empty" (no messages), "completed" (the last request finished), "refused" (the model declined, and the same input would be declined again), "context_full" (the context window was full), "unknown_stop" (the last response stopped for a reason this library does not know) or "malformed" (the history ends in a tool result that answers nothing).