Skip to content

Commit 8b53469

Browse files
authored
Merge pull request #172 from NingWang-art/Mr-Dice_v0.8
fix: reduce hallucination and support multiple requests even though d…
2 parents 76ad40a + 5584afb commit 8b53469

6 files changed

Lines changed: 4 additions & 198 deletions

File tree

agents/matmaster_agent/MrDice_agent/openlam_agent/prompt.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
min_submission_time: str | None = None, # ISO 8601 UTC, e.g. '2024-01-01T00:00:00Z'
1919
max_submission_time: str | None = None,
2020
n_results: int = 10,
21-
output_formats: list['cif'|'json'] = ['json']
21+
output_formats: list['cif'|'json'] = ['cif']
2222
)
2323
- Queries the OpenLAM materials database.
2424
- All parameters are optional; combine them for more precise filtering.
@@ -38,8 +38,8 @@
3838
- If the user specifies a **formula** → set `formula`
3939
- If the user specifies an **energy range** → set `min_energy` / `max_energy`
4040
- If the user specifies a **time filter** → set `min_submission_time` / `max_submission_time`
41-
- If the user requests **all metadata** → use `output_formats=['json']`
4241
- If the user requests **downloadable structure files** → use `output_formats=['cif']`
42+
- If the user requests **all metadata** → use `output_formats=['json']`
4343
4444
## RESPONSE FORMAT
4545
The response must always include:
@@ -78,5 +78,4 @@
7878
→ Tool: fetch_openlam_structures
7979
n_results: 3
8080
output_formats: ["json"]
81-
8281
"""

agents/matmaster_agent/MrDice_agent/prompt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
- Always wait until every planned sub-agent has either returned results or been marked as failed.
9393
- After all sub-agents in the plan are completed, merge their outputs into a unified response.
9494
- If any sub-agent fails, mark it as failed (`n_found=0`), clearly report the failure, and continue with the others.
95+
- 📑 **Multiple retrieval requests**: If the user's query contains more than one distinct retrieval request, execute them in the order given by the user, and only return once all requests are fully completed.
9596
9697
## RESPONSE FORMAT
9798
The response must always include:
@@ -105,7 +106,7 @@
105106
(5) Energy / Formation energy (if available; else **Not Provided**)
106107
(6) Band gap (if available; else **Not Provided**)
107108
(7) Download link (CIF/JSON)
108-
(8) Source database (`OPTIMADE` provider name, `OpenLAM`, or `BohriumPublic`)
109+
(8) Source database (`BohriumPublic`,`OPTIMADE` provider name, or `OpenLAM`)
109110
(9) ID
110111
- Fill missing values with exactly **Not Provided**.
111112
- Number of rows must equal the total `n_found`.

agents/matmaster_agent/optimade_database_agent/__init__.py

Whitespace-only changes.

agents/matmaster_agent/optimade_database_agent/agent.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

agents/matmaster_agent/optimade_database_agent/constant.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

agents/matmaster_agent/optimade_database_agent/prompt.py

Lines changed: 0 additions & 146 deletions
This file was deleted.

0 commit comments

Comments
 (0)