Skip to content

avoid Python code module conflict in s01#458

Open
weyWong-code wants to merge 1 commit into
shareAI-lab:mainfrom
weyWong-code:main
Open

avoid Python code module conflict in s01#458
weyWong-code wants to merge 1 commit into
shareAI-lab:mainfrom
weyWong-code:main

Conversation

@weyWong-code

Copy link
Copy Markdown

Summary

Update the S01 agent loop to terminate explicitly when the model returns
stop_reason == "end_turn".

Motivation

之前的条件会将除 tool_use 之外的所有响应都视为当前轮次已经完成,显式判断 end_turn 可以更清楚地表达
The previous condition treated every response other than tool_use as a
completed turn:

if response.stop_reason != "tool_use":
    return

更改条件为==end_turn,避免误导
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant