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

# Before LLM Input • AI Agent SDK

> BeforeLLMInput: Input for BeforeLLM hooks.

# BeforeLLMInput

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

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

Input for BeforeLLM hooks.

## Properties

<ResponseField name="messages" type="List">
  No description available.
</ResponseField>

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

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

<ResponseField name="max_tokens" type="Optional">
  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#L121">
  `praisonaiagents/hooks/events.py` at line 121
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Models Overview" icon="microchip" href="/docs/models" />

  <Card title="LLM Configuration" icon="gear" href="/docs/configuration/llm-config" />

  <Card title="Model Router" icon="route" href="/docs/features/model-router" />

  <Card title="Model Failover" icon="shield" href="/docs/features/failover" />
</CardGroup>
