VictorLJZ commited on
Commit
25fe9b8
Β·
1 Parent(s): 7608486

refactored tools

Browse files
benchmarking/cli.py CHANGED
@@ -135,7 +135,7 @@ def main():
135
  help="Output directory for results (default: benchmark_results)")
136
  run_parser.add_argument("--max-questions", type=int,
137
  help="Maximum number of questions to process (default: all)")
138
- run_parser.add_argument("--temperature", type=float, default=0.7,
139
  help="Model temperature for response generation (default: 0.7)")
140
  run_parser.add_argument("--top-p", type=float, default=0.95,
141
  help="Top-p nucleus sampling parameter (default: 0.95)")
 
135
  help="Output directory for results (default: benchmark_results)")
136
  run_parser.add_argument("--max-questions", type=int,
137
  help="Maximum number of questions to process (default: all)")
138
+ run_parser.add_argument("--temperature", type=float, default=1,
139
  help="Model temperature for response generation (default: 0.7)")
140
  run_parser.add_argument("--top-p", type=float, default=0.95,
141
  help="Top-p nucleus sampling parameter (default: 0.95)")
medrax/tools/__init__.py CHANGED
@@ -3,14 +3,11 @@
3
  from .classification import *
4
  from .report_generation import *
5
  from .segmentation import *
6
- from .xray_vqa import *
7
- from .llava_med import *
8
  from .grounding import *
9
  from .generation import *
10
  from .dicom import *
11
  from .utils import *
12
  from .rag import *
13
- from .web_browser import *
14
  from .python_tool import *
15
- from .medsam2 import *
16
-
 
3
  from .classification import *
4
  from .report_generation import *
5
  from .segmentation import *
6
+ from .vqa import *
 
7
  from .grounding import *
8
  from .generation import *
9
  from .dicom import *
10
  from .utils import *
11
  from .rag import *
12
+ from .browsing import *
13
  from .python_tool import *
 
 
medrax/tools/browsing/__init__.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Web browsing tools for MedRAX2 medical agents."""
2
+
3
+ from .duckduckgo import DuckDuckGoSearchTool, WebSearchInput
4
+ from .web_browser import WebBrowserTool, WebBrowserSchema, SearchQuerySchema, VisitUrlSchema
5
+
6
+ __all__ = [
7
+ "DuckDuckGoSearchTool",
8
+ "WebSearchInput",
9
+ "WebBrowserTool",
10
+ "WebBrowserSchema",
11
+ "SearchQuerySchema",
12
+ "VisitUrlSchema"
13
+ ]
medrax/tools/{duckduckgo.py β†’ browsing/duckduckgo.py} RENAMED
File without changes
medrax/tools/{web_browser.py β†’ browsing/web_browser.py} RENAMED
File without changes
medrax/tools/segmentation/__init__.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Medical image segmentation tools for MedRAX2."""
2
+
3
+ from .segmentation import ChestXRaySegmentationTool, ChestXRaySegmentationInput, OrganMetrics
4
+ from .medsam2 import MedSAM2Tool, MedSAM2Input
5
+
6
+ __all__ = [
7
+ "ChestXRaySegmentationTool",
8
+ "ChestXRaySegmentationInput",
9
+ "OrganMetrics",
10
+ "MedSAM2Tool",
11
+ "MedSAM2Input"
12
+ ]
medrax/tools/{medsam2.py β†’ segmentation/medsam2.py} RENAMED
File without changes
medrax/tools/{segmentation.py β†’ segmentation/segmentation.py} RENAMED
File without changes
medrax/tools/vqa/__init__.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Visual question answering tools for medical images."""
2
+
3
+ from .xray_vqa import XRayVQATool, XRayVQAToolInput
4
+ from .llava_med import LlavaMedTool, LlavaMedInput
5
+
6
+ __all__ = [
7
+ "XRayVQATool",
8
+ "XRayVQAToolInput",
9
+ "LlavaMedTool",
10
+ "LlavaMedInput"
11
+ ]
medrax/tools/{llava_med.py β†’ vqa/llava_med.py} RENAMED
File without changes
medrax/tools/{xray_vqa.py β†’ vqa/xray_vqa.py} RENAMED
File without changes
medrax/tools/{generation.py β†’ xray_generation.py} RENAMED
File without changes