|
1 | | -/** Request/response fields of the DashScope search and chat endpoints, mirrored from the verified bl CLI types. */ |
| 1 | +/** Request/response fields of the DashScope search and chat endpoints. */ |
2 | 2 |
|
3 | 3 | /** Retrieval-service scenes; the server requires one per list query. */ |
4 | 4 | export type ServiceScene = "chat" | "search"; |
5 | 5 |
|
6 | 6 | export interface ServiceListRequest { |
7 | 7 | agent_scene: ServiceScene; |
8 | | - /** |
9 | | - * Verified to be honored by the server, and to mean "deployed or edited" |
10 | | - * (matching the CLI's documented `--status deployed(含 edited)`). The |
11 | | - * spellings `status` and `agent_status_list` are silently ignored. |
12 | | - */ |
| 8 | + /** Filter to deployed services (spelling required by the server). */ |
13 | 9 | agent_status?: "deployed"; |
14 | 10 | agent_name?: string; |
15 | 11 | page_number: number; |
16 | 12 | page_size: number; |
17 | 13 | } |
18 | 14 |
|
19 | 15 | /** |
20 | | - * One row of the service list, mirrored from a verified live response |
21 | | - * (2026-08-23). The response carries NO description field — confirmed against |
22 | | - * two workspaces, including a name-filtered single-row query — even though |
23 | | - * `service create --description` accepts one. `description` is therefore absent |
24 | | - * here until the backend adds it; when it does, **name the field from the real |
25 | | - * response** rather than guessing. |
| 16 | + * One row of the service list. |
26 | 17 | * |
27 | | - * `pipeline_list` is typed but deliberately never consumed: it frequently omits |
28 | | - * `pipeline_name` (leaving an opaque id) and is sometimes empty outright, so it |
29 | | - * cannot serve as a knowledge-base label. |
| 18 | + * `description` is not included: the listing endpoint does not currently return |
| 19 | + * it, even for services created with a description. Add it here once it starts |
| 20 | + * appearing on the wire. |
| 21 | + * |
| 22 | + * `pipeline_list` is typed but deliberately never consumed: it can omit |
| 23 | + * `pipeline_name` or come back empty, so it cannot serve as a knowledge-base |
| 24 | + * label. |
30 | 25 | */ |
31 | 26 | export interface ServiceListRow { |
32 | 27 | agent_id?: string; |
|
0 commit comments