Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/chapter7/my_simple_agent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# my_simple_agent.py
from typing import Optional, Iterator
from hello_agents import SimpleAgent, HelloAgentsLLM, Config, Message
from hello_agents import SimpleAgent, HelloAgentsLLM, Config, Message, ToolRegistry
import re

class MySimpleAgent(SimpleAgent):
Expand Down
2 changes: 1 addition & 1 deletion docs/chapter7/Chapter7-Building-Your-Agent-Framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ SimpleAgent is the most basic Agent implementation, demonstrating how to build a
```python
# my_simple_agent.py
from typing import Optional, Iterator
from hello_agents import SimpleAgent, HelloAgentsLLM, Config, Message
from hello_agents import SimpleAgent, HelloAgentsLLM, Config, Message, ToolRegistry

class MySimpleAgent(SimpleAgent):
"""
Expand Down
2 changes: 1 addition & 1 deletion docs/chapter7/第七章 构建你的Agent框架.md
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ SimpleAgent是最基础的Agent实现,它展示了如何在框架基础上构
```python
# my_simple_agent.py
from typing import Optional, Iterator
from hello_agents import SimpleAgent, HelloAgentsLLM, Config, Message
from hello_agents import SimpleAgent, HelloAgentsLLM, Config, Message, ToolRegistry

class MySimpleAgent(SimpleAgent):
"""
Expand Down