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

# Platform Event Input • AI Agent SDK

> PlatformEventInput: Input for inbound platform-event hooks (Issue #5161).

# PlatformEventInput

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

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

Input for inbound platform-event hooks (Issue #5161).

Carries a normalised, non-message platform event — a reaction, edit,
deletion, membership change or thread creation — to
`REACTION_RECEIVED` / `MESSAGE_EDITED` / `MESSAGE_DELETED` /
`MEMBER_JOINED` / `MEMBER_LEFT` / `THREAD_CREATED` hooks. Fields mirror
:class:`~praisonaiagents.bots.protocols.PlatformEvent`; the `kind` field
disambiguates reaction add vs remove within `REACTION_RECEIVED`. Emitted
by `MessageHookMixin.fire_platform_event` (praisonai-bot).

## Properties

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

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

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

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

<ResponseField name="message_id" type="Optional[str]">
  No description available.
</ResponseField>

<ResponseField name="emoji" type="Optional[str]">
  No description available.
</ResponseField>

<ResponseField name="new_text" type="Optional[str]">
  No description available.
</ResponseField>

<ResponseField name="thread_id" type="Optional[str]">
  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#L392">
  `praisonaiagents/hooks/events.py` at line 392
</Card>
