Repository navigation
Commit eff85dd
Python: fix(python): preserve Annotated metadata in kernel functions (#14496)
Fixes #14441\n\n## Summary\n- copy Annotated dictionary metadata before
extracting the description\n- preserve caller-owned metadata when the
same annotation is reused\n- add a regression test covering repeated
decorated functions\n\n## Validation\n- focused kernel function
decorator tests: 32 passed\n- Ruff checks passed\n
Co-authored-by: AnvitDevadiga <[email protected]>1 parent 629f9a4 commit eff85dd
2 files changed
Lines changed: 17 additions & 0 deletions
File tree
- python
- semantic_kernel/functions
- tests/unit/functions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
142 | 158 | | |
143 | 159 | | |
144 | 160 | | |
| |||
0 commit comments