-
Notifications
You must be signed in to change notification settings - Fork 364
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
狼人杀游戏中,类 'AgentBase' 的未解析的特性引用 'set_parser' #515
Comments
Could you provide more information? |
Traceback (most recent call last): I speak: "Player2, I think we should target the Seer. They have the ability to learn our identities and could potentially expose us if they are not careful. What do you think?" Player2 responds: "Agreed, that is a good plan. Let's make sure to act quickly and quietly tonight." Finish discussion: False (we have reached an agreement)```", an error occurred: Expecting value: line 2 column 1 (char 1) |
I speak: "Player2, I think we should target the Seer. They have the ability to learn our identities and could potentially expose us if they are not careful. What do you think?" Player2 responds: "Agreed, that is a good plan. Let's make sure to act quickly and quietly tonight." Finish discussion: False (we have reached an agreement)```", an error occurred: Expecting value: line 2 column 1 (char 1) |
This issue arises from the LLM's failure to correctly output the JSON format. The correct format should appear as follows: {
"thought": "I need to confirm if Player2 is my teammate. If they are, we should decide on a target to eliminate tonight.",
"speak": "Player2, are you the other werewolf? If so, let's decide who to target tonight.",
"finish_discussion": false
} There are two potential solutions: one is to switch to a larger model, and the other is to modify the prompt settings in the MarkdownJsonDictParser or consider using an alternative parser, such as the MultiTaggedContentParser. |
类 'AgentBase' 的未解析的特性引用 'set_parser'
The text was updated successfully, but these errors were encountered: