Commit 69283e1
committed
Fix YAML agent ignoring model.options execution settings
Fixes #13349
When loading agents from YAML files, model.options (like response_format,
temperature, etc.) were being added as regular KernelArguments dict items
instead of being placed in execution_settings. This caused AI service
calls to ignore these settings.
Changes:
- Modified _normalize_spec_fields() in agent.py to convert model.options
to PromptExecutionSettings before creating KernelArguments
- Model options now correctly placed in execution_settings property
- Input defaults continue to be added as regular dict items (correct)
Testing:
- Verified with custom test showing model.options now in execution_settings
- All 30 existing unit tests in tests/unit/agents/test_agent.py pass
- No breaking changes introduced1 parent de20575 commit 69283e1
1 file changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
998 | 999 | | |
999 | 1000 | | |
1000 | 1001 | | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
1004 | 1015 | | |
1005 | 1016 | | |
1006 | 1017 | | |
| |||
0 commit comments