|
@@ -18,7 +18,6 @@ Action: [这里是你要调用的工具,格式为 function_name(arg_name="arg_
|
|
|
|
|
|
|
|
|
|
|
|
|
import requests
|
|
import requests
|
|
|
-import json
|
|
|
|
|
|
|
|
|
|
def get_weather(city: str) -> str:
|
|
def get_weather(city: str) -> str:
|
|
|
"""
|
|
"""
|
|
@@ -196,4 +195,4 @@ for i in range(5): # 设置最大循环次数
|
|
|
# 3.4. 记录观察结果
|
|
# 3.4. 记录观察结果
|
|
|
observation_str = f"Observation: {observation}"
|
|
observation_str = f"Observation: {observation}"
|
|
|
print(f"{observation_str}\n" + "="*40)
|
|
print(f"{observation_str}\n" + "="*40)
|
|
|
- prompt_history.append(observation_str)
|
|
|
|
|
|
|
+ prompt_history.append(observation_str)
|