-
Notifications
You must be signed in to change notification settings - Fork 52
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
[Enhancement]Add clarify #281
Changes from 9 commits
a29fd23
7e13856
0131124
b6fae2b
1ad664b
0c8a796
540c8b6
661e274
ef362b5
b09cc67
54227dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,20 +114,20 @@ class PluginStep(AgentStepWithFiles[PluginInfo, str]): | |
"""A step taken by an agent that calls a plugin.""" | ||
|
||
|
||
class _NullInfo(Dict): | ||
pass | ||
class EndInfo(Dict): | ||
end_reason: str | ||
|
||
|
||
class _NullResult(object): | ||
class NullResult(object): | ||
pass | ||
|
||
|
||
@dataclass | ||
class NoActionStep(AgentStep[_NullInfo, _NullResult]): | ||
class NoActionStep(AgentStep[EndInfo, NullResult]): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 我又思考了一下,有一些不同看法:现在 |
||
"""A step taken by an agent that performs no action and gives no result.""" | ||
|
||
|
||
NO_ACTION_STEP = NoActionStep(info=_NullInfo(), result=_NullResult()) | ||
NO_ACTION_STEP = NoActionStep(info=EndInfo(end_reason="FINISHED"), result=NullResult()) | ||
|
||
|
||
@dataclass | ||
|
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.
这里其实不一定是创建finished response了,这个方法名字需要修改吗?