Repository navigation
Commit dc5a59e
[feat][evaluation] support a2a_agent and custom_agent eval target types on OpenAPI experiment-create path
The web link already supports A2A Agent (a2a_agent, type=9) and the in-house
long-connection agent (custom_agent, type=10), and the execution operators are
registered downstream. The OpenAPI experiment-create path, however, rejected
these two types: mapOpenAPIEvalTargetType only cased 6 types, so a2a_agent /
custom_agent fell through to default and were blocked both by the up-front
SubmitExperimentOApi validation and by the convertor.
This wires the OpenAPI path to the same service layer the web link uses:
- mapOpenAPIEvalTargetType: add cases a2a_agent -> A2AAgent, custom_agent -> CustomAgent.
- supportedOpenAPIEvalTargetTypes: add both so the up-front validation and the
error message stay in sync.
No IDL change (the OpenAPI string enums and EvalTargetContent sub-fields already
exist) and no operator change (already registered in the commercial DI).
Meego: 7337555141
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 2011284 commit dc5a59e
2 files changed
Lines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
| |||
260 | 262 | | |
261 | 263 | | |
262 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
263 | 269 | | |
264 | 270 | | |
265 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
| 282 | + | |
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
| |||
2975 | 2977 | | |
2976 | 2978 | | |
2977 | 2979 | | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
| 2995 | + | |
| 2996 | + | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
| 3000 | + | |
| 3001 | + | |
| 3002 | + | |
| 3003 | + | |
| 3004 | + | |
| 3005 | + | |
| 3006 | + | |
| 3007 | + | |
| 3008 | + | |
| 3009 | + | |
| 3010 | + | |
| 3011 | + | |
| 3012 | + | |
| 3013 | + | |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
| 3017 | + | |
| 3018 | + | |
| 3019 | + | |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
2978 | 3029 | | |
2979 | 3030 | | |
2980 | 3031 | | |
| |||
0 commit comments