> ## 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.

# Session End Input • AI Agent SDK

> SessionEndInput: Input for SessionEnd hooks.

# SessionEndInput

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

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

Input for SessionEnd hooks.

## Properties

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

<ResponseField name="total_turns" type="int">
  No description available.
</ResponseField>

<ResponseField name="total_tokens" type="int">
  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#L104">
  `praisonaiagents/hooks/events.py` at line 104
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Session Management" icon="clock" href="/docs/concepts/session-management" />

  <Card title="Sessions Feature" icon="folder" href="/docs/features/sessions" />

  <Card title="Session Persistence" icon="database" href="/docs/features/session-persistence" />
</CardGroup>
