Commit 09b84bc
committed
Fix: Ensure non-nullable Map for FunctionCallPart.args
Resolves a compilation type mismatch: "inferred type is ...HashMap<String, String?>? but Map<String, String?> was expected".
This indicated that the SDK's `FunctionCallPart` constructor expects a non-nullable `Map<String, String?>` for its `args` parameter.
The `PartDto.toSdk()` mapper for `FunctionCallPartDto` has been updated. If the DTO's `args` field is `null`, an empty `Map<String, String?>` is now passed to the `FunctionCallPart` constructor. Otherwise, the DTO's `args` map is converted to a non-nullable `Map<String, String?>`.
This ensures the SDK constructor always receives a non-null Map instance, satisfying the type requirement and fixing the build failure.1 parent 161c967 commit 09b84bc
1 file changed
Lines changed: 8 additions & 5 deletions
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | | - | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
0 commit comments