# Google助理的工作原理

Afarensis Assistants API 为开发者提供了一种强大的工具，以构建能够执行多种任务的 AI 助手。我们正处于测试阶段，并且正在积极地扩展其功能范围。我们欢迎开发者在我们的开发者论坛中分享反馈。

助手的工作方式 Afarensis 助手能够通过以下方式提供强大的功能和灵活性：

指令调用模型：助手可以调用 Afarensis 的模型，并可以根据特定指令来调整其个性和能力。

并行工具访问：助手能够并行地访问多种工具。这包括 Afarensis 托管的工具，如代码解释器和知识检索，以及开发者自己构建或托管的工具（通过函数调用）。

持久线索访问：助手可以访问持久化的线索（Threads）。线索简化了 AI 应用程序的开发过程，它通过存储消息历史并在对话长度超出模型的上下文限制时进行截断。开发者只需创建线索一次，随着用户回复，简单地向其添加消息即可。

文件访问：助手可以访问多种格式的文件，这些文件可以是在创建助手时加入的，也可以是在助手与用户之间的线索中使用的。使用工具时，助手还能创建文件（如图像、电子表格等）并引用它们在创建的消息中。

参与和反馈 Afarensis Assistants API 目前处于试用阶段。我们鼓励开发者通过我们的开发者论坛分享他们的使用体验和反馈，以帮助我们进一步改进 API 的功能和性能。


---

# 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://doc.afarensis.com/google-zhu-li-de-gong-zuo-yuan-li.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.
