# 莱卡环境

### 创建新环境并定义变量。

点击 **\[ Environment ]**  按钮

![](/files/NGpOqu5wZzBhg9PcMaW6)

点击新建 **\[ New ]** 一个环境space

![](/files/enXunRI1Sb3hcjIGhLha)

命名环境，然后通过单击 \[+] 按钮在该环境中添加一个新变量。 命名环境变量时。 您的变量必须满足此规则。&#x20;

* 以字母 (a-z,A-Z) 或下划线 (*) 开头*&#x20;
* *由字母 (a-z,A-Z)、下划线 (*) 或数字 (0-9) 组成&#x20;

`注意：同一环境中的两个变量不能重名。`

然后点击 **\[ Create ]**&#x6309;钮

![](/files/xiZofBrek1Hk8kjtW8lt)

就是这样！

### 使用环境中的变量

通过选择UI右上角的环境下拉菜单来选择你想要使用的环境。

![](/files/aLg5veu0GBrvV8q8gwyj)

然后，挑选你要使用的环境。

![](/files/2Hqj4QGyYVeEQhIG5uPo)

在您要在请求中能够使用来自该环境的变量时， 将环境中的变量名以 {{变量名}} 的形式使用

提示：使用环境变量的输入表单时会有一个建议下拉列表，您可以轻松识别和使用它们。

![](/files/f6U3PQnQtEF2zYvKMMHi)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.getlaika.app/docs/docs-cn/ji-chu/lai-ka-huan-jing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
