Skip to content

AgentError

junjo.agent.errors.AgentError

Kind: Exception Class

SDK version: 0.69.0

Documentation channel: Stable release

AgentError(message: str, *, agent_key: str, definition_id: str, structural_id: str, run_id: str, evidence: object = None)

View source

Base for typed failures tied to one Agent invocation identity.

termination_reason: str

View source

Public attribute.

agent_key = require_ijson_text(agent_key, 'agent_key', nonempty=True)

View source

Public attribute.

definition_id = require_ijson_text(definition_id, 'definition_id', nonempty=True)

View source

Public attribute.

structural_id = require_ijson_text(structural_id, 'structural_id', nonempty=True)

View source

Public attribute.

run_id = require_ijson_text(run_id, 'run_id', nonempty=True)

View source

Public attribute.

evidence: FrozenJsonValue | AgentStateSnapshot | None = evidence if (isinstance(evidence, AgentStateSnapshot) or evidence is None) else freeze_json(evidence)

View source

Public attribute.