You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Assets/CoreAI.Demos/QwenDemo/README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,22 @@ Both scenes contain their own `CoreAILifetimeScope`, camera, light, and demo con
20
20
21
21
The HUD reports first-token latency, total latency, token usage, and executed tool calls. The model chooses an action; C# remains authoritative over wish charges, mana, value clamps, and Unity object access.
22
22
Both agents use `AgentMode.ToolsOnly`, disable chat history, and send
23
-
`LlmToolChoiceMode.RequireAny` on every turn so a text-only response cannot count as a successful action.
23
+
`LlmToolChoiceMode.RequireSpecific` with their single expected tool so CoreAI narrows the native tool
24
+
contract and a text-only response cannot count as a successful action. Spellcraft also gives the compact
25
+
0.8B model explicit RU/EN element aliases; for example, `мега молния` maps to `storm` power `3`.
24
26
The demo accepts exactly one successful expected tool call per turn. Zero calls, multiple calls, an
25
27
unexpected tool, or a failed tool is rejected instead of being displayed as a successful cast. The
26
28
determinism button repeats this same real tool-call path; it does not infer a decision from assistant text.
27
29
30
+
The release smoke also checks the actual tool arguments for the Russian element presets. The compact model
31
+
must return `storm|3` for `мега молния`, `fire|2` for `стена огня`, `poison|1` for
32
+
`ядовитый туман над врагом`, and `frost|2` for `заморозь их до костей`. Effects are not generated by the
33
+
model: each supported element selects a predefined C# gameplay/VFX branch, and C# clamps power and mana.
34
+
28
35
## Verification
29
36
30
-
-`QwenDemoScenesEditModeTests` checks scene composition, the `ToolsOnly`/`RequireAny` contract, the
31
-
exact-one validator, and compact HUD layout.
37
+
-`QwenDemoScenesEditModeTests` checks scene composition, the `ToolsOnly`/`RequireSpecific` contract,
38
+
Russian lightning semantics, the exact-one validator, and compact HUD layout.
32
39
-`QwenDemoSafetyPlayModeTests` checks that parallel native tool callbacks can apply exactly one side
33
40
effect per model turn and that the guard resets for the next turn. EditMode tests cover the readiness
34
41
lock fields and invalid tool-call outcomes without loading a model.
0 commit comments