Explorar o código

update small bug in chapter7

jjyaoao hai 7 meses
pai
achega
7b5c12dcb4

+ 3 - 3
docs/chapter7/Chapter7-Building-Your-Agent-Framework.md

@@ -458,9 +458,9 @@ As shown in Table 7.1 above, this evolution embodies an important principle of f
 
 In the previous section, we built `HelloAgentsLLM`, a core component that solves the key problem of communicating with large language models. However, it still needs a series of supporting interfaces and components to handle data flow, manage configuration, handle exceptions, and provide a clear, unified structure for upper-layer application construction. This section will cover the following three core files:
 
-- **`message.py`**: Defines the unified message format within the framework, ensuring standardization of information transfer between agents and models.
-- **`config.py`**: Provides a centralized configuration management solution, making framework behavior easy to adjust and extend.
-- **`agent.py`**: Defines the abstract base class (`Agent`) for all agents, providing a unified interface and specification for implementing different types of agents in the future.
+- `message.py`: Defines the unified message format within the framework, ensuring standardization of information transfer between agents and models.
+- `config.py`: Provides a centralized configuration management solution, making framework behavior easy to adjust and extend.
+- `agent.py`: Defines the abstract base class (`Agent`) for all agents, providing a unified interface and specification for implementing different types of agents in the future.
 
 ### 7.3.1 Message Class
 

+ 3 - 3
docs/chapter7/第七章 构建你的Agent框架.md

@@ -458,9 +458,9 @@ for chunk in llm.think(messages):
 
 在上节中,我们构建了 `HelloAgentsLLM` 这一核心组件,解决了与大语言模型通信的关键问题。不过它还需要一系列配套的接口和组件来处理数据流、管理配置、应对异常,并为上层应用的构建提供一个清晰、统一的结构。本节将讲述以下三个核心文件:
 
-- **`message.py`**: 定义了框架内统一的消息格式,确保了智能体与模型之间信息传递的标准化。
-- **`config.py`**: 提供了一个中心化的配置管理方案,使框架的行为易于调整和扩展。
-- **`agent.py`**: 定义了所有智能体的抽象基类(`Agent`),为后续实现不同类型的智能体提供了统一的接口和规范。
+- `message.py`: 定义了框架内统一的消息格式,确保了智能体与模型之间信息传递的标准化。
+- `config.py`: 提供了一个中心化的配置管理方案,使框架的行为易于调整和扩展。
+- `agent.py`: 定义了所有智能体的抽象基类(`Agent`),为后续实现不同类型的智能体提供了统一的接口和规范。
 
 ### 7.3.1 Message 类