Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

docs(dotnet): the router example must pass a state shape Predict can serialize

Adeshina Lasisic090c711769f
diff --git a/laya-dotnet/README.md b/laya-dotnet/README.md
index 8616cf93..02df368a 100644
--- a/laya-dotnet/README.md
+++ b/laya-dotnet/README.md
@@ -481,8 +481,10 @@ override), loading checkpoints lazily under an LRU cache:
```csharp
using var router = new LayaRouter(new LayaRouterOptions { MaxLoaded = 2 });
-var result = router.Predict(new { message = "I was charged twice" }, questions); // -> english
-var deDe = router.Predict(new { message = "Mein Konto wurde zweimal belastet" }, questions); // -> multilingual
+var result = router.Predict(
+ new Dictionary<string, object?> { ["message"] = "I was charged twice" }, questions); // -> english
+var deDe = router.Predict(
+ new Dictionary<string, object?> { ["message"] = "Mein Konto wurde zweimal belastet" }, questions); // -> multilingual
Console.WriteLine(result.Routing!.Reason); // "English Latin text"
```