Skip to content
Merged
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
1 change: 0 additions & 1 deletion code/chapter1/FirstAgentTest.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"outputs": [],
"source": [
"import requests\n",
"import json\n",
"import os\n",
"import re\n",
"from openai import OpenAI\n",
Expand Down
3 changes: 1 addition & 2 deletions code/chapter1/FirstAgentTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@


import requests
import json

def get_weather(city: str) -> str:
"""
Expand Down Expand Up @@ -196,4 +195,4 @@ def generate(self, prompt: str, system_prompt: str) -> str:
# 3.4. 记录观察结果
observation_str = f"Observation: {observation}"
print(f"{observation_str}\n" + "="*40)
prompt_history.append(observation_str)
prompt_history.append(observation_str)
1 change: 0 additions & 1 deletion docs/chapter1/第一章 初识智能体.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ Action: [这里是你要调用的工具,格式为 function_name(arg_name="arg_

```python
import requests
import json

def get_weather(city: str) -> str:
"""
Expand Down