Skip to content

Commit 4412283

Browse files
committed
Some doc fixes
1 parent bea2c7b commit 4412283

File tree

3 files changed

+42
-42
lines changed

3 files changed

+42
-42
lines changed

reference/apis/api-flow.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ complex data processing pipelines.
1616

1717
The request contains the following fields:
1818
- `operation`: The operation to perform (see operations below)
19-
- `class_name`: Flow class name (for class operations and start-flow)
20-
- `class_definition`: Flow class definition JSON (for put-class)
19+
- `class-name`: Flow class name (for class operations and start-flow)
20+
- `class-definition`: Flow class definition JSON (for put-class)
2121
- `description`: Flow description (for start-flow)
22-
- `flow_id`: Flow instance ID (for flow instance operations)
22+
- `flow-id`: Flow instance ID (for flow instance operations)
2323

2424
### Response
2525

2626
The response contains the following fields:
27-
- `class_names`: Array of flow class names (returned by list-classes)
28-
- `flow_ids`: Array of active flow IDs (returned by list-flows)
29-
- `class_definition`: Flow class definition JSON (returned by get-class)
27+
- `class-names`: Array of flow class names (returned by list-classes)
28+
- `flow-ids`: Array of active flow IDs (returned by list-flows)
29+
- `class-definition`: Flow class definition JSON (returned by get-class)
3030
- `flow`: Flow instance JSON (returned by get-flow)
3131
- `description`: Flow description (returned by get-flow)
3232
- `error`: Error information if operation fails
@@ -47,7 +47,7 @@ Request:
4747
Response:
4848
```json
4949
{
50-
"class_names": ["pdf-processor", "text-analyzer", "knowledge-extractor"]
50+
"class-names": ["pdf-processor", "text-analyzer", "knowledge-extractor"]
5151
}
5252
```
5353

@@ -57,14 +57,14 @@ Request:
5757
```json
5858
{
5959
"operation": "get-class",
60-
"class_name": "pdf-processor"
60+
"class-name": "pdf-processor"
6161
}
6262
```
6363

6464
Response:
6565
```json
6666
{
67-
"class_definition": "{\"interfaces\": {\"text-completion\": {\"request\": \"persistent://tg/request/text-completion\", \"response\": \"persistent://tg/response/text-completion\"}}, \"description\": \"PDF processing workflow\"}"
67+
"class-definition": "{\"interfaces\": {\"text-completion\": {\"request\": \"persistent://tg/request/text-completion\", \"response\": \"persistent://tg/response/text-completion\"}}, \"description\": \"PDF processing workflow\"}"
6868
}
6969
```
7070

@@ -74,8 +74,8 @@ Request:
7474
```json
7575
{
7676
"operation": "put-class",
77-
"class_name": "pdf-processor",
78-
"class_definition": "{\"interfaces\": {\"text-completion\": {\"request\": \"persistent://tg/request/text-completion\", \"response\": \"persistent://tg/response/text-completion\"}}, \"description\": \"PDF processing workflow\"}"
77+
"class-name": "pdf-processor",
78+
"class-definition": "{\"interfaces\": {\"text-completion\": {\"request\": \"persistent://tg/request/text-completion\", \"response\": \"persistent://tg/response/text-completion\"}}, \"description\": \"PDF processing workflow\"}"
7979
}
8080
```
8181

@@ -90,7 +90,7 @@ Request:
9090
```json
9191
{
9292
"operation": "delete-class",
93-
"class_name": "pdf-processor"
93+
"class-name": "pdf-processor"
9494
}
9595
```
9696

@@ -113,7 +113,7 @@ Request:
113113
Response:
114114
```json
115115
{
116-
"flow_ids": ["flow-123", "flow-456", "flow-789"]
116+
"flow-ids": ["flow-123", "flow-456", "flow-789"]
117117
}
118118
```
119119

@@ -123,7 +123,7 @@ Request:
123123
```json
124124
{
125125
"operation": "get-flow",
126-
"flow_id": "flow-123"
126+
"flow-id": "flow-123"
127127
}
128128
```
129129

@@ -141,8 +141,8 @@ Request:
141141
```json
142142
{
143143
"operation": "start-flow",
144-
"class_name": "pdf-processor",
145-
"flow_id": "flow-123",
144+
"class-name": "pdf-processor",
145+
"flow-id": "flow-123",
146146
"description": "Processing document batch 1"
147147
}
148148
```
@@ -158,7 +158,7 @@ Request:
158158
```json
159159
{
160160
"operation": "stop-flow",
161-
"flow_id": "flow-123"
161+
"flow-id": "flow-123"
162162
}
163163
```
164164

@@ -192,7 +192,7 @@ Response:
192192
{
193193
"id": "unique-request-id",
194194
"response": {
195-
"class_names": ["pdf-processor", "text-analyzer"]
195+
"class-names": ["pdf-processor", "text-analyzer"]
196196
},
197197
"complete": true
198198
}

reference/apis/api-knowledge.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The request contains the following fields:
2121
- `flow`: Flow identifier (for load operations)
2222
- `collection`: Collection identifier (for load operations)
2323
- `triples`: RDF triples data (for put operations)
24-
- `graph_embeddings`: Graph embeddings data (for put operations)
24+
- `graph-embeddings`: Graph embeddings data (for put operations)
2525

2626
### Response
2727

@@ -30,7 +30,7 @@ The response contains the following fields:
3030
- `ids`: Array of knowledge core IDs (returned by list operation)
3131
- `eos`: End of stream indicator for streaming responses
3232
- `triples`: RDF triples data (returned by get operation)
33-
- `graph_embeddings`: Graph embeddings data (returned by get operation)
33+
- `graph-embeddings`: Graph embeddings data (returned by get operation)
3434

3535
## Operations
3636

@@ -61,7 +61,7 @@ Request:
6161
}
6262
]
6363
},
64-
"graph_embeddings": {
64+
"graph-embeddings": {
6565
"metadata": {
6666
"id": "core-123",
6767
"user": "alice",
@@ -109,7 +109,7 @@ Response:
109109
}
110110
]
111111
},
112-
"graph_embeddings": {
112+
"graph-embeddings": {
113113
"metadata": {
114114
"id": "core-123",
115115
"user": "alice",

reference/apis/api-librarian.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ Cassandra for metadata) with multi-user support.
1616

1717
The request contains the following fields:
1818
- `operation`: The operation to perform (see operations below)
19-
- `document_id`: Document identifier (for document operations)
20-
- `document_metadata`: Document metadata object (for add/update operations)
19+
- `document-id`: Document identifier (for document operations)
20+
- `document-metadata`: Document metadata object (for add/update operations)
2121
- `content`: Document content as base64-encoded bytes (for add operations)
22-
- `processing_id`: Processing job identifier (for processing operations)
23-
- `processing_metadata`: Processing metadata object (for add-processing)
22+
- `processing-id`: Processing job identifier (for processing operations)
23+
- `processing-metadata`: Processing metadata object (for add-processing)
2424
- `user`: User identifier (required for most operations)
2525
- `collection`: Collection filter (optional for list operations)
2626
- `criteria`: Query criteria array (for filtering operations)
@@ -29,10 +29,10 @@ The request contains the following fields:
2929

3030
The response contains the following fields:
3131
- `error`: Error information if operation fails
32-
- `document_metadata`: Single document metadata (for get operations)
32+
- `document-metadata`: Single document metadata (for get operations)
3333
- `content`: Document content as base64-encoded bytes (for get-content)
34-
- `document_metadatas`: Array of document metadata (for list operations)
35-
- `processing_metadatas`: Array of processing metadata (for list-processing)
34+
- `document-metadatas`: Array of document metadata (for list operations)
35+
- `processing-metadatas`: Array of processing metadata (for list-processing)
3636

3737
## Document Operations
3838

@@ -42,7 +42,7 @@ Request:
4242
```json
4343
{
4444
"operation": "add-document",
45-
"document_metadata": {
45+
"document-metadata": {
4646
"id": "doc-123",
4747
"time": 1640995200000,
4848
"kind": "application/pdf",
@@ -73,15 +73,15 @@ Request:
7373
```json
7474
{
7575
"operation": "get-document-metadata",
76-
"document_id": "doc-123",
76+
"document-id": "doc-123",
7777
"user": "alice"
7878
}
7979
```
8080

8181
Response:
8282
```json
8383
{
84-
"document_metadata": {
84+
"document-metadata": {
8585
"id": "doc-123",
8686
"time": 1640995200000,
8787
"kind": "application/pdf",
@@ -106,7 +106,7 @@ Request:
106106
```json
107107
{
108108
"operation": "get-document-content",
109-
"document_id": "doc-123",
109+
"document-id": "doc-123",
110110
"user": "alice"
111111
}
112112
```
@@ -132,7 +132,7 @@ Request:
132132
Response:
133133
```json
134134
{
135-
"document_metadatas": [
135+
"document-metadatas": [
136136
{
137137
"id": "doc-123",
138138
"time": 1640995200000,
@@ -161,7 +161,7 @@ Request:
161161
```json
162162
{
163163
"operation": "update-document",
164-
"document_metadata": {
164+
"document-metadata": {
165165
"id": "doc-123",
166166
"title": "Updated Research Paper",
167167
"comments": "Updated findings and conclusions",
@@ -182,7 +182,7 @@ Request:
182182
```json
183183
{
184184
"operation": "remove-document",
185-
"document_id": "doc-123",
185+
"document-id": "doc-123",
186186
"user": "alice"
187187
}
188188
```
@@ -200,9 +200,9 @@ Request:
200200
```json
201201
{
202202
"operation": "add-processing",
203-
"processing_metadata": {
203+
"processing-metadata": {
204204
"id": "proc-456",
205-
"document_id": "doc-123",
205+
"document-id": "doc-123",
206206
"time": 1640995400000,
207207
"flow": "pdf-extraction",
208208
"user": "alice",
@@ -231,10 +231,10 @@ Request:
231231
Response:
232232
```json
233233
{
234-
"processing_metadatas": [
234+
"processing-metadatas": [
235235
{
236236
"id": "proc-456",
237-
"document_id": "doc-123",
237+
"document-id": "doc-123",
238238
"time": 1640995400000,
239239
"flow": "pdf-extraction",
240240
"user": "alice",
@@ -251,7 +251,7 @@ Request:
251251
```json
252252
{
253253
"operation": "remove-processing",
254-
"processing_id": "proc-456",
254+
"processing-id": "proc-456",
255255
"user": "alice"
256256
}
257257
```
@@ -287,7 +287,7 @@ Response:
287287
{
288288
"id": "unique-request-id",
289289
"response": {
290-
"document_metadatas": [...]
290+
"document-metadatas": [...]
291291
},
292292
"complete": true
293293
}

0 commit comments

Comments
 (0)