Commit d0eb531
feat: add model field to CustomAgentConfig across all SDKs (#1309)
* feat(nodejs): add model field to CustomAgentConfig
Add optional `model` property to the Node/TypeScript CustomAgentConfig
interface. When set, the runtime will attempt to use the specified model
for the agent, falling back to the parent session model if unavailable.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* feat(python): add model field to CustomAgentConfig
Add optional `model` key to the Python CustomAgentConfig TypedDict and
wire it through `_convert_custom_agent_to_wire_format` so the runtime
receives it in the session.create / session.resume payloads.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* feat(go): add Model field to CustomAgentConfig
Add optional `Model` field to the Go CustomAgentConfig struct. The field
serializes as `"model"` and is omitted when empty. When set, the runtime
will attempt to use the specified model for the agent.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* feat(dotnet): add Model property to CustomAgentConfig
Add optional `Model` property to the .NET CustomAgentConfig class. The
property serializes as `"model"` and is omitted when null. When set,
the runtime will attempt to use the specified model for the agent.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* feat(rust): add model field to CustomAgentConfig
Add optional `model` field to the Rust CustomAgentConfig struct with a
`with_model` builder method. Serializes as `"model"` (camelCase
rename is a no-op for single-word fields) and is skipped when None.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* test(nodejs): verify model field is forwarded in session.create payload
Add a test case that creates a custom agent with a model property and
asserts it appears in the session.create RPC payload.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* test(python): verify model field in CustomAgentConfig wire conversion
Add unit tests asserting that the model key is correctly forwarded
to the camelCase wire payload, and omitted when not set.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* test(go): verify CustomAgentConfig model JSON serialization
Add tests asserting that the model field round-trips through JSON when
set and is omitted from the payload when empty.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* test(dotnet): verify CustomAgentConfig.Model is preserved through Clone
Update the SessionConfig clone test to set Model on a CustomAgentConfig
and assert it survives the clone operation.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* test(rust): verify CustomAgentConfig model builder and serialization
Add unit tests for the with_model() builder, JSON serialization with
model set, and confirming model is omitted from wire when None.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 38f38ff commit d0eb531
10 files changed
Lines changed: 161 additions & 1 deletion
File tree
- dotnet
- src
- test/Unit
- go
- nodejs
- src
- test
- python
- copilot
- rust/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1933 | 1933 | | |
1934 | 1934 | | |
1935 | 1935 | | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
1936 | 1944 | | |
1937 | 1945 | | |
1938 | 1946 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
535 | 539 | | |
536 | 540 | | |
537 | 541 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1213 | 1213 | | |
1214 | 1214 | | |
1215 | 1215 | | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
1216 | 1222 | | |
1217 | 1223 | | |
1218 | 1224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
871 | 894 | | |
872 | 895 | | |
873 | 896 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2512 | 2512 | | |
2513 | 2513 | | |
2514 | 2514 | | |
| 2515 | + | |
| 2516 | + | |
2515 | 2517 | | |
2516 | 2518 | | |
2517 | 2519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
| 821 | + | |
| 822 | + | |
821 | 823 | | |
822 | 824 | | |
823 | 825 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
982 | 982 | | |
983 | 983 | | |
984 | 984 | | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
529 | 535 | | |
530 | 536 | | |
531 | 537 | | |
| |||
587 | 593 | | |
588 | 594 | | |
589 | 595 | | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
590 | 602 | | |
591 | 603 | | |
592 | 604 | | |
| |||
3196 | 3208 | | |
3197 | 3209 | | |
3198 | 3210 | | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
| 3220 | + | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
3199 | 3236 | | |
3200 | 3237 | | |
3201 | 3238 | | |
| |||
0 commit comments