# Objects

概述 Afarensis 助手是通过一系列相互关联的对象构建而成，每个对象在助手的操作和响应流程中扮演着关键角色。以下是这些对象及其代表的意义：

对象及其作用 助手 (Assistant)：使用 Afarensis 模型并调用各类工具的目的性 AI 实体。它是响应用户需求、执行任务的核心。

线索 (Thread)：代表助手与用户间的一次对话会话。线索负责存储会话中的所有消息，并能够自动处理消息截断，以确保内容适配模型的上下文限制。

消息 (Message)：可以由用户或助手创建，包含文本、图像及其他文件类型的通讯载体。所有消息以列表形式存储于线索中，构成会话的记录。

运行 (Run)：指助手根据其配置和线索中的消息执行的一次操作。在运行过程中，助手会调用模型和工具，根据需要向线索追加新的消息。

运行步骤 (Run Step)：记录助手在一次运行中所采取的具体步骤。通过分析运行步骤，开发者可以深入理解助手如何处理信息、调用工具并生成最终结果。

功能流程 接收输入：用户通过发送消息开始与助手的互动。 处理对话：助手利用线索对象管理和存储会话历史，确保有效的信息交流。 执行任务：助手根据配置和收到的消息，通过运行和运行步骤调用相应的模型和工具，处理用户的需求。 提供反馈：助手将处理结果以消息形式追加到线索中，完成对用户请求的响应。 通过这一流程，Afarensis 助手能够有效地理解用户的需求，执行复杂的任务，并提供有用的反馈。


---

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