documentation updates for entity extraction and summarization
This commit is contained in:
@@ -120,6 +120,38 @@ all projects use isolated memory. Returns `201` with the created project object.
|
||||
|
||||
Only provided fields are updated — omitted fields are not touched.
|
||||
|
||||
### Summaries
|
||||
|
||||
| Method | Path | Description |
|
||||
|---|---|---|
|
||||
| GET | /summaries/session/:sessionId | Get all summaries for a session (by external UUID) |
|
||||
| GET | /summaries/project/:projectId | Get all summaries for a project |
|
||||
|
||||
**GET /summaries/session/:sessionId** — resolves the external UUID to an
|
||||
internal session ID, then fetches summaries from the memory service.
|
||||
Returns an array of summary objects ordered by `created_at` ascending.
|
||||
|
||||
**GET /summaries/project/:projectId** — proxies directly to the memory
|
||||
service project summaries endpoint.
|
||||
|
||||
**Summary object shape:**
|
||||
```json
|
||||
{
|
||||
"id": 8,
|
||||
"session_id": 72,
|
||||
"project_id": null,
|
||||
"content": "The user asked about...",
|
||||
"token_count": 579,
|
||||
"episode_range": "246-251",
|
||||
"created_at": 1776766518,
|
||||
"updated_at": 1776766518
|
||||
}
|
||||
```
|
||||
|
||||
> **Proxy requirement:** `/summaries` must be added to both the Caddyfile
|
||||
> reverse proxy and the Vite dev proxy config alongside the other route
|
||||
> prefixes. See `orchestration-service.md` for the Caddy block pattern.
|
||||
|
||||
### Models
|
||||
|
||||
| Method | Path | Description |
|
||||
@@ -269,6 +301,29 @@ Both fields are optional. Only provided fields are updated.
|
||||
|
||||
Same request/response shape as orchestration `/projects` above.
|
||||
|
||||
### Summaries
|
||||
|
||||
| Method | Path | Description |
|
||||
|---|---|---|
|
||||
| POST | /summaries | Create a new summary |
|
||||
| GET | /sessions/:id/summaries | Get all summaries for a session (internal ID) |
|
||||
| GET | /projects/:id/summaries | Get all summaries for a project |
|
||||
| PATCH | /summaries/:id | Update a summary (content, tokenCount, episodeRange) |
|
||||
| DELETE | /summaries/:id | Delete a summary |
|
||||
|
||||
**POST /summaries — body:**
|
||||
```json
|
||||
{
|
||||
"sessionId": 72,
|
||||
"content": "The user discussed...",
|
||||
"tokenCount": 579,
|
||||
"episodeRange": "246-251"
|
||||
}
|
||||
```
|
||||
`content` is required. Either `sessionId` or `projectId` is required.
|
||||
|
||||
**PATCH /summaries/:id — body:** any subset of `content`, `tokenCount`, `episodeRange`.
|
||||
|
||||
### Entities
|
||||
|
||||
| Method | Path | Description |
|
||||
|
||||
Reference in New Issue
Block a user