Commit 4921dff
committed
Fix: Correct nullability for FunctionCallPartDto.args
Resolves a compilation type mismatch error in PhotoReasoningMappers.kt related to the 'args' field of FunctionCallPart and FunctionCallPartDto.
The `args` field in `FunctionCallPartDto` has been changed from `Map<String, String>?` to `Map<String, String?>?`. This allows the values within the map to be null, aligning with the inferred type from the SDK's `FunctionCallPart.args` and the type expected by its constructor.
This change ensures that the direct assignment `args = this.args` in both `toDto` and `toSdk` mapping functions for `FunctionCallPart` is now type-correct, fixing the build failure.1 parent 2862a2c commit 4921dff
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments