razaali10 commited on
Commit
98c386f
·
verified ·
1 Parent(s): 6946637

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -6
README.md CHANGED
@@ -36,15 +36,30 @@ engineer.
36
  | **Built-in agent** | `POST /api/agent` and MCP tool `agent_analyze` | One natural-language call; the server's own LLM loop plans and runs the tools |
37
  | **Files** | `GET /files/{session_id}/{filename}` | Generated SWMR docx / audit-zip downloads |
38
 
39
- ## Tools (16)
40
 
41
  `upload_model` → `run_simulation` → then: `get_node_results`, `get_link_results`,
42
- `get_subcatchment_results`, `get_timeseries`, `query_results` (validated JSON plans
43
- against a 34-table SQLite store incl. the complete tokenized INP), `get_table_catalog`,
 
44
  `calgary_screening`, `preliminary_design_review` (deterministic findings register incl.
45
  RPT-### reconciliation findings), `get_reconciliation`, `run_scenario` (base never
46
- mutated; deterministic comparison), `generate_report` (SWMR docx + audit zip),
47
- `list_sessions`, `close_session`, `agent_analyze`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
 
49
  Typical flow: **upload_model → run_simulation → analysis tools**, reusing the
50
  returned `session_id`. Sessions expire after 6 h of inactivity.
@@ -165,4 +180,4 @@ python -m venv /opt/swmm-venv && /opt/swmm-venv/bin/pip install -r worker-requir
165
  SWMM_WORKER_PYTHON=/opt/swmm-venv/bin/python uvicorn server:app --port 7860
166
  ```
167
 
168
- Free and non-commercial, for the water-engineering community.
 
36
  | **Built-in agent** | `POST /api/agent` and MCP tool `agent_analyze` | One natural-language call; the server's own LLM loop plans and runs the tools |
37
  | **Files** | `GET /files/{session_id}/{filename}` | Generated SWMR docx / audit-zip downloads |
38
 
39
+ ## Tools (17)
40
 
41
  `upload_model` → `run_simulation` → then: `get_node_results`, `get_link_results`,
42
+ `get_subcatchment_results`, `get_timeseries` (bounded series with authoritative
43
+ `time_of_peak`), `query_results` (validated JSON plans against a 34-table SQLite
44
+ store incl. the complete tokenized INP), `get_table_catalog`,
45
  `calgary_screening`, `preliminary_design_review` (deterministic findings register incl.
46
  RPT-### reconciliation findings), `get_reconciliation`, `run_scenario` (base never
47
+ mutated; deterministic comparison), `attach_figure` (embed client-generated
48
+ PNG/JPEG figures into the audited report), `generate_report` (SWMR docx + audit
49
+ zip), `list_sessions`, `close_session`, `agent_analyze`.
50
+
51
+ ### Client-figure workflow (recommended)
52
+
53
+ When your LLM client plots a hydrograph or map from `get_timeseries` data,
54
+ do **not** let it rebuild the report document itself — that bypasses the
55
+ audited tables and provenance package. Instead:
56
+
57
+ 1. Client generates the figure (its own sandbox / code interpreter).
58
+ 2. `attach_figure(session_id, image_base64, caption, section="results")`.
59
+ 3. `generate_report(...)` — the figure is embedded at the end of the matching
60
+ Heading-1 section with a caption labelling it *client-attached,
61
+ illustrative*, and it is archived in the audit zip under `figures/` with a
62
+ manifest. The report itself remains the server's verified artifact.
63
 
64
  Typical flow: **upload_model → run_simulation → analysis tools**, reusing the
65
  returned `session_id`. Sessions expire after 6 h of inactivity.
 
180
  SWMM_WORKER_PYTHON=/opt/swmm-venv/bin/python uvicorn server:app --port 7860
181
  ```
182
 
183
+ Free and non-commercial, for the water-engineering community.