更新nexent的sdk出现问题 #2098
Closed
kingdomlight
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
为什么更新nexent的sdk,只进行了第一步,就结束了,使用官网的agent_run运行的,但我用之前nexent的版本却没问题,
下面是输出的结果
┌────────────────────────── New run - example_agent ──────────────────────────┐
│ │
│ strrawberry中出现了多少个字母r │
│ │
└─ OpenAIModel - Qwen/Qwen2.5-7B-Instruct ────────────────────────────────────┘
{'type': 'agent_new_run', 'content': 'strrawberry中出现了多少个字母r'}
{'type': 'step_count', 'content': '\n步骤 1 \n'}
{'type': 'model_output_thinking', 'content': ''}
{'type': 'model_output_thinking', 'content': 'Thought'}
{'type': 'model_output_thinking', 'content': ':'}
{'type': 'model_output_thinking', 'content': ' 我'}
{'type': 'model_output_thinking', 'content': '需要'}
{'type': 'model_output_thinking', 'content': '计算'}
{'type': 'model_output_thinking', 'content': '字符串'}
{'type': 'model_output_thinking', 'content': ' "'}
{'type': 'model_output_thinking', 'content': 'str'}
{'type': 'model_output_thinking', 'content': 'raw'}
{'type': 'model_output_thinking', 'content': 'berry'}
{'type': 'model_output_thinking', 'content': '"'}
{'type': 'model_output_thinking', 'content': ' 中'}
{'type': 'model_output_thinking', 'content': '字母'}
{'type': 'model_output_thinking', 'content': ' "'}
{'type': 'model_output_thinking', 'content': 'r'}
{'type': 'model_output_thinking', 'content': '"'}
{'type': 'model_output_thinking', 'content': ' 出'}
{'type': 'model_output_thinking', 'content': '现'}
{'type': 'model_output_thinking', 'content': '的'}
{'type': 'model_output_thinking', 'content': '次数'}
{'type': 'model_output_thinking', 'content': '。'}
{'type': 'model_output_thinking', 'content': '我可以'}
{'type': 'model_output_thinking', 'content': '使用'}
{'type': 'model_output_thinking', 'content': ' Python'}
{'type': 'model_output_thinking', 'content': ' 的'}
{'type': 'model_output_thinking', 'content': '字符串'}
{'type': 'model_output_thinking', 'content': '方法'}
{'type': 'model_output_thinking', 'content': '来'}
{'type': 'model_output_thinking', 'content': '实现'}
{'type': 'model_output_thinking', 'content': '这个'}
{'type': 'model_output_thinking', 'content': '目标'}
{'type': 'model_output_thinking', 'content': '。\n'}
{'type': 'model_output_thinking', 'content': '<'}
{'type': 'model_output_thinking', 'content': 'code'}
MODEL OUTPUT ──────────────────────────────────────────────────────────────────
Thought: 我需要计算字符串 "strrawberry" 中字母 "r" 出现的次数。我可以使用
Python 的字符串方法来实现这个目标。
text = "strrawberry"
count_r = text.count("r")
print(count_r)
AGENT FINAL ANSWER ────────────────────────────────────────────────────────────
Thought: 我需要计算字符串 "strrawberry" 中字母 "r" 出现的次数。我可以使用
Python 的字符串方法来实现这个目标。
text = "strrawberry"
count_r = text.count("r")
print(count_r)
[Step 1: Duration 1.47 seconds]
{'type': 'model_output_thinking', 'content': '>\n'}
{'type': 'model_output_thinking', 'content': 'text'}
{'type': 'model_output_thinking', 'content': ' ='}
{'type': 'model_output_thinking', 'content': ' "'}
{'type': 'model_output_thinking', 'content': 'str'}
{'type': 'model_output_thinking', 'content': 'raw'}
{'type': 'model_output_thinking', 'content': 'berry"\ncount_r = text.count("r")\nprint(count_r)\n\n'}
{'type': 'final_answer', 'content': 'Thought: 我需要计算字符串 "strrawberry" 中字母 "r" 出现的次数。我可以使用 Python 的字符串方法来实现这个目标。\n
\ntext = "strrawberry"\ncount_r = text.count("r")\nprint(count_r)\n\n'}进程已结束,退出代码为 0
Beta Was this translation helpful? Give feedback.
All reactions