Commit a9c994a
Add experimental multi-provider BYOK registry config across all six SDKs (#1718)
* Add experimental multi-provider BYOK registry config across all six SDKs
Surfaces the new named-provider / provider-model registry from
copilot-agent-runtime#9864 (providers + models on session create/resume)
in the .NET, Node, Python, Go, Rust, and Java SDKs. The whole feature is
marked experimental in each language using that SDK's existing convention.
Custom agents can now bind to provider-qualified BYOK model ids (e.g.
"alpha/sonnet"), letting multiple providers, multiple models per provider,
and agents/subagents coexist in one session and route inference to the
right provider with the configured wire model and headers.
Also adds end-to-end coverage for the surface in every SDK (shared replay
snapshots under test/snapshots/multi_provider_registry), and exposes
"model" on the Java hand-written rpc.AgentInfo so it matches the agent-info
type in the other five SDKs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix formatting in multi-provider registry E2E tests
Apply prettier (Node) and ruff format (Python) to the new multi-provider
registry E2E test files so the format-check CI steps pass.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 8789b28 commit a9c994a
33 files changed
Lines changed: 3185 additions & 6 deletions
File tree
- dotnet
- src
- test/E2E
- go
- internal/e2e
- java/src
- main/java/com/github/copilot
- rpc
- test/java/com/github/copilot
- nodejs
- src
- test/e2e
- python
- copilot
- e2e
- rust
- src
- tests
- e2e
- test/snapshots/multi_provider_registry
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1009 | 1009 | | |
1010 | 1010 | | |
1011 | 1011 | | |
| 1012 | + | |
| 1013 | + | |
1012 | 1014 | | |
1013 | 1015 | | |
1014 | 1016 | | |
| |||
1207 | 1209 | | |
1208 | 1210 | | |
1209 | 1211 | | |
| 1212 | + | |
| 1213 | + | |
1210 | 1214 | | |
1211 | 1215 | | |
1212 | 1216 | | |
| |||
2402 | 2406 | | |
2403 | 2407 | | |
2404 | 2408 | | |
| 2409 | + | |
| 2410 | + | |
2405 | 2411 | | |
2406 | 2412 | | |
2407 | 2413 | | |
| |||
2494 | 2500 | | |
2495 | 2501 | | |
2496 | 2502 | | |
| 2503 | + | |
| 2504 | + | |
2497 | 2505 | | |
2498 | 2506 | | |
2499 | 2507 | | |
| |||
2569 | 2577 | | |
2570 | 2578 | | |
2571 | 2579 | | |
| 2580 | + | |
| 2581 | + | |
2572 | 2582 | | |
2573 | 2583 | | |
2574 | 2584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2070 | 2070 | | |
2071 | 2071 | | |
2072 | 2072 | | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
| 2196 | + | |
| 2197 | + | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
2073 | 2202 | | |
2074 | 2203 | | |
2075 | 2204 | | |
| |||
2494 | 2623 | | |
2495 | 2624 | | |
2496 | 2625 | | |
| 2626 | + | |
| 2627 | + | |
2497 | 2628 | | |
2498 | 2629 | | |
2499 | 2630 | | |
| |||
2649 | 2780 | | |
2650 | 2781 | | |
2651 | 2782 | | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
2652 | 2798 | | |
2653 | 2799 | | |
2654 | 2800 | | |
| |||
0 commit comments