Skip to content
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

react模式下,自动拼装的promt,缺少action描述信息,请问如何解决? #1260

Open
nzk1912 opened this issue May 10, 2024 · 2 comments
Assignees

Comments

@nzk1912
Copy link

nzk1912 commented May 10, 2024

如下图中,只有类名,请问如何增加工具的功能描述,并且能够拼接到promt中,以便更好的选择正确的action?
image

@YangZeyu95
Copy link

Same issue.
Now I have a workaround, set 'desc' when calling set_actions().
For example, self.set_actions([action_dummy(desc='some description')])

@hs3180
Copy link

hs3180 commented May 15, 2024

You can override str method in your actions. They will be showed in action ReAct prompt.

self.states.append(f"{len(self.actions) - 1}. {action}")

@geekan geekan self-assigned this May 18, 2024
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

No branches or pull requests

4 participants