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

# ask • AI Agent SDK

> ask: Create an ask result (requires user confirmation).

# ask

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**HookResult**](../classes/HookResult) class in the [**types**](../modules/types) module.

Create an ask result (requires user confirmation).

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def ask(reason: str) -> 'HookResult'
```

## Parameters

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

### Returns

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

## Uses

* `cls`

## Used By

* [`console_approval_callback`](../functions/console_approval_callback)

## Source

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