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

# Display Instruction • AI Agent SDK

> display_instruction: API reference for display_instruction

# display\_instruction

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**main**](../modules/main) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def display_instruction(message: str, console: Any, agent_name: str, agent_role: str, agent_tools: List[str]) -> Any
```

## Parameters

<ParamField query="message" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="console" type="Any" required={false}>
  No description available.
</ParamField>

<ParamField query="agent_name" type="str" required={false}>
  No description available.
</ParamField>

<ParamField query="agent_role" type="str" required={false}>
  No description available.
</ParamField>

<ParamField query="agent_tools" type="List" required={false}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Uses

* `Console`
* `execute_sync_callback`
* `Panel`
* `getEffectiveLevel`
* `logging.getLogger`
* `Panel.fit`
* `Text`

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Display System" icon="display" href="/docs/features/display-system" />

  <Card title="Display Callbacks" icon="phone" href="/docs/features/display-callbacks" />

  <Card title="Output Styles" icon="palette" href="/docs/features/output-styles" />
</CardGroup>
