> ## Documentation Index
> Fetch the complete documentation index at: https://ikun.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Async basic

## 代码

```python cookbook/models/meta/async_basic.py theme={null}
import asyncio
from agno.agent import Agent
from agno.models.meta import Llama

async def main():
    agent = Agent(
        model=Llama(id="Llama-4-Maverick-17B"),
        markdown=True,
    )
    response = await agent.aprint_response(
        "就气候变化的最新研究生成一个简洁的总结。"
    )
asyncio.run(main())
```

## 用法

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="设置你的 LLAMA API 密钥">
    ```bash theme={null}
    export LLAMA_API_KEY=YOUR_API_KEY
    ```
  </Step>

  <Step title="安装库">
    ```bash theme={null}
    pip install llama-api-client agno
    ```
  </Step>

  <Step title="运行代理">
    <CodeGroup>
      ```bash Mac theme={null}
      python cookbook/models/meta/async_basic.py
      ```

      ```bash Windows theme={null}
      python cookbook/models/meta/async_basic.py
      ```
    </CodeGroup>
  </Step>
</Steps>
