自定义tool,在__init__中添加属性,执行时没有初始化 #413
Replies: 1 comment
-
理解错了 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
这样写没有初始化(不执行__init__):
@register_tool('test_tool')
class TestTool(BaseTool):
下面这种会执行:
@register_tool('test_tool')
class TestTool(BaseTool):
有没有人遇到过这种情况呢
Beta Was this translation helpful? Give feedback.
All reactions