> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# On Error Input • AI Agent SDK

> OnErrorInput: Input for OnError hooks.

# OnErrorInput

> Defined in the [**events**](../modules/events) module.

<Badge color="blue">AI Agent</Badge>

Input for OnError hooks.

## Properties

<ResponseField name="error_type" type="str">
  No description available.
</ResponseField>

<ResponseField name="error_message" type="str">
  No description available.
</ResponseField>

<ResponseField name="stack_trace" type="Optional">
  No description available.
</ResponseField>

<ResponseField name="context" type="Dict">
  No description available.
</ResponseField>

<Accordion title="Internal & Generic Methods">
  * **to\_dict**: Generic utility method.
</Accordion>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/hooks/events.py#L161">
  `praisonaiagents/hooks/events.py` at line 161
</Card>
