-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Agent][Enhancement]Add tool choice #270
Conversation
Southpika
commented
Jan 8, 2024
- 增加tool choice
- 增加基于 tool choice的半自动Agent,当前方案为可规定前N轮调用的工具
- 增加tool choice下agent的单测
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #270 +/- ##
===========================================
- Coverage 69.37% 69.12% -0.26%
===========================================
Files 63 63
Lines 3236 3258 +22
===========================================
+ Hits 2245 2252 +7
- Misses 991 1006 +15 ☔ View full report in Codecov by Sentry. |
if first_tools: | ||
self._first_tools = first_tools | ||
for tool in self._first_tools: | ||
if tool not in self.get_tools(): | ||
raise RuntimeError("The first tool must be in the tools list.") | ||
else: | ||
self._first_tools = [] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
暂时为类的方法
即:指定之后,每一次run都需先执行first_tools