AgentError
junjo.agent.errors.AgentError
Kind: Exception Class
SDK version: 0.69.0
Documentation channel: Stable release
Signature
Section titled “Signature”AgentError(message: str, *, agent_key: str, definition_id: str, structural_id: str, run_id: str, evidence: object = None)Base for typed failures tied to one Agent invocation identity.
Members
Section titled “Members”termination_reason
Section titled “termination_reason”termination_reason: strPublic attribute.
agent_key
Section titled “agent_key”agent_key = require_ijson_text(agent_key, 'agent_key', nonempty=True)Public attribute.
definition_id
Section titled “definition_id”definition_id = require_ijson_text(definition_id, 'definition_id', nonempty=True)Public attribute.
structural_id
Section titled “structural_id”structural_id = require_ijson_text(structural_id, 'structural_id', nonempty=True)Public attribute.
run_id
Section titled “run_id”run_id = require_ijson_text(run_id, 'run_id', nonempty=True)Public attribute.
evidence
Section titled “evidence”evidence: FrozenJsonValue | AgentStateSnapshot | None = evidence if (isinstance(evidence, AgentStateSnapshot) or evidence is None) else freeze_json(evidence)Public attribute.