Skip to content

Commit 6ac0c0d

Browse files
authored
feat(werewolf): add StructuredOutputReminder (#483)
## AgentScope-Java Version 1.0.7 ## Description feat(werewolf): add StructuredOutputReminder ## Checklist Please check the following items before code is ready to be reviewed. - [x] Code has been formatted with `mvn spotless:apply` - [x] All tests are passing (`mvn test`) - [x] Javadoc comments are complete and follow project conventions - [x] Related documentation has been updated (e.g. links, examples, etc.) - [x] Code is ready for review
1 parent 40fb4cd commit 6ac0c0d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • agentscope-examples/werewolf-hitl/src/main/java/io/agentscope/examples/werewolf/web

agentscope-examples/werewolf-hitl/src/main/java/io/agentscope/examples/werewolf/web/WerewolfWebGame.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import io.agentscope.core.message.TextBlock;
2929
import io.agentscope.core.model.DashScopeChatModel;
3030
import io.agentscope.core.model.GenerateOptions;
31+
import io.agentscope.core.model.StructuredOutputReminder;
3132
import io.agentscope.core.pipeline.MsgHub;
3233
import io.agentscope.core.tool.Toolkit;
3334
import io.agentscope.examples.werewolf.GameConfiguration;
@@ -218,6 +219,7 @@ private GameState initializeGame() {
218219
.model(model)
219220
.memory(new InMemoryMemory())
220221
.toolkit(new Toolkit())
222+
.structuredOutputReminder(StructuredOutputReminder.PROMPT)
221223
.build();
222224
}
223225

0 commit comments

Comments
 (0)