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
Reorganize and expand hallucinations documentation
Moved sections to group related entries, merged duplicate Event<T,E>.Data entry with new .Args variant, added new Secret IsRequired/IsOptional and Skeleton.List entries with additional Found In references.
`Details` requires an `IEnumerable<Detail>` in its constructor. There is no parameterless public constructor, and the pipe operator `|` does not work on `Details` to add children. Use the collection constructor or the `.ToDetails()` builder pattern on a model.
`Details` requires an `IEnumerable<Detail>` in its constructor. There is no parameterless public constructor, and the pipe operator `|` does not work on `Details` to add children. Use the collection constructor or the `.ToDetails()` builder pattern on a model.
244
-
245
-
**Found In:**
246
-
857de09c-ab87-49a5-aac4-394f7d0aa207
247
-
b6beb60d-478d-409e-b10d-7913ae911e85
248
-
fd5baba6-72aa-4d28-ac10-72e1be86e494
249
-
9e1cba6f-bd19-472e-83a3-8db63b4860f6
250
-
251
252
## ChatMessage — ambiguous reference between Microsoft.Extensions.AI and Ivy
The `Secret` record has no `IsRequired` or `IsOptional` parameter. By default, secrets are required (`Optional = false`). To make a secret optional, use `Optional: true`. The agent invents prefixed variants (`IsRequired`, `IsOptional`) instead of using the actual `Optional` parameter.
528
+
529
+
**Found In:**
530
+
07a0cf7f-d297-4dd2-8fc4-883bb52aa305
531
+
ac1aa99e-739d-4382-86df-7a92b0a25cc7
532
+
bcae7857-4504-4b58-94a7-d733142440f7
533
+
502
534
## Button.WithIcon() — non-existent fluent method
503
535
504
536
**Hallucinated API:**
@@ -837,36 +869,6 @@ new Box(content).Background(Colors.Green)
837
869
5c9cfb70-c9f5-4642-8de6-480be8f5ee85
838
870
332383ac-d463-4640-abe6-ee0208735329
839
871
840
-
## Secret(IsRequired/IsOptional) — non-existent named parameters
841
-
842
-
**Hallucinated API:**
843
-
844
-
```csharp
845
-
// Variant 1: IsRequired (inverted logic)
846
-
newSecret("ApiKey", IsRequired: true)
847
-
newSecret("Model", IsRequired: false)
848
-
849
-
// Variant 2: IsOptional (prefixed version of Optional)
850
-
newSecret("Model", IsOptional: true)
851
-
```
852
-
853
-
**Error:**`CS1739: The best overload for 'Secret' does not have a parameter named 'IsRequired'` or `'IsOptional'`
854
-
855
-
**Correct API:**
856
-
857
-
```csharp
858
-
// Secret is a record: Secret(string Key, string? Preset = null, bool Optional = false)
859
-
newSecret("ApiKey") // required by default (Optional = false)
The `Secret` record has no `IsRequired` or `IsOptional` parameter. By default, secrets are required (`Optional = false`). To make a secret optional, use `Optional: true`. The agent invents prefixed variants (`IsRequired`, `IsOptional`) instead of using the actual `Optional` parameter.
865
-
866
-
**Found In:**
867
-
07a0cf7f-d297-4dd2-8fc4-883bb52aa305
868
-
ac1aa99e-739d-4382-86df-7a92b0a25cc7
869
-
870
872
## using Ivy.Apps / using Ivy.Shared / using Ivy.Views.Charts — non-existent namespaces
871
873
872
874
**Hallucinated API:**
@@ -962,6 +964,63 @@ The agent assumed `.Icon()` was a chainable method on `TextBuilder`, but `Icon()
**Error:**`'Event<DataTable, RowActionClickEventArgs>' does not contain a definition for 'Data'` / `'Args'`
980
+
981
+
**Correct API:**
982
+
983
+
```csharp
984
+
args.Value.Id
985
+
args.Value.Tag
986
+
```
987
+
988
+
`Event<TSender, TValue>` uses `.Value` to access the event args, not `.Data` or `.Args`. The agent likely confused this with other event patterns from different frameworks (e.g., WPF `DataContext`, JavaScript `event.data`, or `EventArgs` naming conventions).
989
+
990
+
**Found In:**
991
+
f20dced8-1689-4289-a2d8-ee67136eb6ce
992
+
e8232f03-12c3-4c9c-bf1b-42bed9f6d44c
993
+
994
+
## Skeleton.List() — non-existent static method
995
+
996
+
**Hallucinated API:**
997
+
998
+
```csharp
999
+
Skeleton.List(1)
1000
+
```
1001
+
1002
+
**Error:**`No overload for method 'List' takes 1 arguments` (or similar — `List` does not exist on `Skeleton`)
1003
+
1004
+
**Correct API:**
1005
+
1006
+
```csharp
1007
+
// Available Skeleton static factory methods:
1008
+
Skeleton.Card()
1009
+
Skeleton.Text(lines: 3)
1010
+
Skeleton.DataTable(rows: 5)
1011
+
Skeleton.Feed(items: 3)
1012
+
Skeleton.Form()
1013
+
1014
+
// Or use a plain Skeleton instance:
1015
+
newSkeleton()
1016
+
```
1017
+
1018
+
`Skeleton` has no `List()` method. For a list-like loading placeholder, use `Skeleton.Feed(items)` which renders a vertical feed of skeleton items.
1019
+
1020
+
**Found In:**
1021
+
9ed7f8e7-aa7c-4c8b-b6a0-8c5b389f1dc2
1022
+
e8232f03-12c3-4c9c-bf1b-42bed9f6d44c
1023
+
965
1024
## FileInput.MaxFiles(n) on single-file state — runtime error
966
1025
967
1026
**Hallucinated API:**
@@ -1148,29 +1207,6 @@ The enum is `SelectInputVariant` (singular), not `SelectInputVariants` (plural).
1148
1207
**Found In:**
1149
1208
a55e08b9-f212-49ef-97b9-d352b7b4beb8
1150
1209
1151
-
## Event<T,E>.Data — non-existent property
1152
-
1153
-
**Hallucinated API:**
1154
-
1155
-
```csharp
1156
-
args.Data.Id
1157
-
args.Data.Tag
1158
-
```
1159
-
1160
-
**Error:**`'Event<DataTable, RowActionClickEventArgs>' does not contain a definition for 'Data'`
1161
-
1162
-
**Correct API:**
1163
-
1164
-
```csharp
1165
-
args.Value.Id
1166
-
args.Value.Tag
1167
-
```
1168
-
1169
-
`Event<TSender, TValue>` uses `.Value` to access the event args, not `.Data`. The agent likely confused this with other event patterns from different frameworks (e.g., WPF `DataContext`, JavaScript `event.data`).
0 commit comments