|
@@ -617,7 +617,7 @@ SimpleAgent是最基础的Agent实现,它展示了如何在框架基础上构
|
|
|
```python
|
|
```python
|
|
|
# my_simple_agent.py
|
|
# my_simple_agent.py
|
|
|
from typing import Optional, Iterator
|
|
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):
|
|
class MySimpleAgent(SimpleAgent):
|
|
|
"""
|
|
"""
|