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

# Job Completed Input • AI Agent SDK

> JobCompletedInput: Input for JOB_COMPLETED hooks (a background job finished).

# JobCompletedInput

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

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

Input for JOB\_COMPLETED hooks (a background job finished).

Emitted when a background subagent/job launched via
`spawn_subagent(background=True)` reaches a terminal state
(completed or failed). Carries the optional origin/delivery context
captured at spawn time so a gateway can route the result back to the
originating conversation without an active turn.

## Properties

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

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

<ResponseField name="result" type="Any">
  No description available.
</ResponseField>

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

<ResponseField name="deliver" 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="thread_id" type="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#L465">
  `praisonaiagents/hooks/events.py` at line 465
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Async Jobs" icon="list-check" href="/docs/docs/features/async-jobs" />

  <Card title="Background Tasks" icon="clock" href="/docs/docs/features/background-tasks" />
</CardGroup>
