tooluniverse 0.2.0__py3-none-any.whl → 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of tooluniverse might be problematic. Click here for more details.
- tooluniverse/__init__.py +340 -4
- tooluniverse/admetai_tool.py +84 -0
- tooluniverse/agentic_tool.py +563 -0
- tooluniverse/alphafold_tool.py +96 -0
- tooluniverse/base_tool.py +129 -6
- tooluniverse/boltz_tool.py +207 -0
- tooluniverse/chem_tool.py +192 -0
- tooluniverse/compose_scripts/__init__.py +1 -0
- tooluniverse/compose_scripts/biomarker_discovery.py +293 -0
- tooluniverse/compose_scripts/comprehensive_drug_discovery.py +186 -0
- tooluniverse/compose_scripts/drug_safety_analyzer.py +89 -0
- tooluniverse/compose_scripts/literature_tool.py +34 -0
- tooluniverse/compose_scripts/output_summarizer.py +279 -0
- tooluniverse/compose_scripts/tool_description_optimizer.py +681 -0
- tooluniverse/compose_scripts/tool_discover.py +705 -0
- tooluniverse/compose_scripts/tool_graph_composer.py +448 -0
- tooluniverse/compose_tool.py +371 -0
- tooluniverse/ctg_tool.py +1002 -0
- tooluniverse/custom_tool.py +81 -0
- tooluniverse/dailymed_tool.py +108 -0
- tooluniverse/data/admetai_tools.json +155 -0
- tooluniverse/data/agentic_tools.json +1156 -0
- tooluniverse/data/alphafold_tools.json +87 -0
- tooluniverse/data/boltz_tools.json +9 -0
- tooluniverse/data/chembl_tools.json +16 -0
- tooluniverse/data/clait_tools.json +108 -0
- tooluniverse/data/clinicaltrials_gov_tools.json +326 -0
- tooluniverse/data/compose_tools.json +202 -0
- tooluniverse/data/dailymed_tools.json +70 -0
- tooluniverse/data/dataset_tools.json +646 -0
- tooluniverse/data/disease_target_score_tools.json +712 -0
- tooluniverse/data/efo_tools.json +17 -0
- tooluniverse/data/embedding_tools.json +319 -0
- tooluniverse/data/enrichr_tools.json +31 -0
- tooluniverse/data/europe_pmc_tools.json +22 -0
- tooluniverse/data/expert_feedback_tools.json +10 -0
- tooluniverse/data/fda_drug_adverse_event_tools.json +491 -0
- tooluniverse/data/fda_drug_labeling_tools.json +1 -1
- tooluniverse/data/fda_drugs_with_brand_generic_names_for_tool.py +76929 -148860
- tooluniverse/data/finder_tools.json +209 -0
- tooluniverse/data/gene_ontology_tools.json +113 -0
- tooluniverse/data/gwas_tools.json +1082 -0
- tooluniverse/data/hpa_tools.json +333 -0
- tooluniverse/data/humanbase_tools.json +47 -0
- tooluniverse/data/idmap_tools.json +74 -0
- tooluniverse/data/mcp_client_tools_example.json +113 -0
- tooluniverse/data/mcpautoloadertool_defaults.json +28 -0
- tooluniverse/data/medlineplus_tools.json +141 -0
- tooluniverse/data/monarch_tools.json +1 -1
- tooluniverse/data/openalex_tools.json +36 -0
- tooluniverse/data/opentarget_tools.json +1 -1
- tooluniverse/data/output_summarization_tools.json +101 -0
- tooluniverse/data/packages/bioinformatics_core_tools.json +1756 -0
- tooluniverse/data/packages/categorized_tools.txt +206 -0
- tooluniverse/data/packages/cheminformatics_tools.json +347 -0
- tooluniverse/data/packages/earth_sciences_tools.json +74 -0
- tooluniverse/data/packages/genomics_tools.json +776 -0
- tooluniverse/data/packages/image_processing_tools.json +38 -0
- tooluniverse/data/packages/machine_learning_tools.json +789 -0
- tooluniverse/data/packages/neuroscience_tools.json +62 -0
- tooluniverse/data/packages/original_tools.txt +0 -0
- tooluniverse/data/packages/physics_astronomy_tools.json +62 -0
- tooluniverse/data/packages/scientific_computing_tools.json +560 -0
- tooluniverse/data/packages/single_cell_tools.json +453 -0
- tooluniverse/data/packages/software_tools.json +4954 -0
- tooluniverse/data/packages/structural_biology_tools.json +396 -0
- tooluniverse/data/packages/visualization_tools.json +399 -0
- tooluniverse/data/pubchem_tools.json +215 -0
- tooluniverse/data/pubtator_tools.json +68 -0
- tooluniverse/data/rcsb_pdb_tools.json +1332 -0
- tooluniverse/data/reactome_tools.json +19 -0
- tooluniverse/data/semantic_scholar_tools.json +26 -0
- tooluniverse/data/special_tools.json +2 -25
- tooluniverse/data/tool_composition_tools.json +88 -0
- tooluniverse/data/toolfinderkeyword_defaults.json +34 -0
- tooluniverse/data/txagent_client_tools.json +9 -0
- tooluniverse/data/uniprot_tools.json +211 -0
- tooluniverse/data/url_fetch_tools.json +94 -0
- tooluniverse/data/uspto_downloader_tools.json +9 -0
- tooluniverse/data/uspto_tools.json +811 -0
- tooluniverse/data/xml_tools.json +3275 -0
- tooluniverse/dataset_tool.py +296 -0
- tooluniverse/default_config.py +165 -0
- tooluniverse/efo_tool.py +42 -0
- tooluniverse/embedding_database.py +630 -0
- tooluniverse/embedding_sync.py +396 -0
- tooluniverse/enrichr_tool.py +266 -0
- tooluniverse/europe_pmc_tool.py +52 -0
- tooluniverse/execute_function.py +1775 -95
- tooluniverse/extended_hooks.py +444 -0
- tooluniverse/gene_ontology_tool.py +194 -0
- tooluniverse/graphql_tool.py +158 -36
- tooluniverse/gwas_tool.py +358 -0
- tooluniverse/hpa_tool.py +1645 -0
- tooluniverse/humanbase_tool.py +389 -0
- tooluniverse/logging_config.py +254 -0
- tooluniverse/mcp_client_tool.py +764 -0
- tooluniverse/mcp_integration.py +413 -0
- tooluniverse/mcp_tool_registry.py +925 -0
- tooluniverse/medlineplus_tool.py +337 -0
- tooluniverse/openalex_tool.py +228 -0
- tooluniverse/openfda_adv_tool.py +283 -0
- tooluniverse/openfda_tool.py +393 -160
- tooluniverse/output_hook.py +1122 -0
- tooluniverse/package_tool.py +195 -0
- tooluniverse/pubchem_tool.py +158 -0
- tooluniverse/pubtator_tool.py +168 -0
- tooluniverse/rcsb_pdb_tool.py +38 -0
- tooluniverse/reactome_tool.py +108 -0
- tooluniverse/remote/boltz/boltz_mcp_server.py +50 -0
- tooluniverse/remote/depmap_24q2/depmap_24q2_mcp_tool.py +442 -0
- tooluniverse/remote/expert_feedback/human_expert_mcp_tools.py +2013 -0
- tooluniverse/remote/expert_feedback/simple_test.py +23 -0
- tooluniverse/remote/expert_feedback/start_web_interface.py +188 -0
- tooluniverse/remote/expert_feedback/web_only_interface.py +0 -0
- tooluniverse/remote/expert_feedback_mcp/human_expert_mcp_server.py +1611 -0
- tooluniverse/remote/expert_feedback_mcp/simple_test.py +34 -0
- tooluniverse/remote/expert_feedback_mcp/start_web_interface.py +91 -0
- tooluniverse/remote/immune_compass/compass_tool.py +327 -0
- tooluniverse/remote/pinnacle/pinnacle_tool.py +328 -0
- tooluniverse/remote/transcriptformer/transcriptformer_tool.py +586 -0
- tooluniverse/remote/uspto_downloader/uspto_downloader_mcp_server.py +61 -0
- tooluniverse/remote/uspto_downloader/uspto_downloader_tool.py +120 -0
- tooluniverse/remote_tool.py +99 -0
- tooluniverse/restful_tool.py +53 -30
- tooluniverse/scripts/generate_tool_graph.py +408 -0
- tooluniverse/scripts/visualize_tool_graph.py +829 -0
- tooluniverse/semantic_scholar_tool.py +62 -0
- tooluniverse/smcp.py +2452 -0
- tooluniverse/smcp_server.py +975 -0
- tooluniverse/test/mcp_server_test.py +0 -0
- tooluniverse/test/test_admetai_tool.py +370 -0
- tooluniverse/test/test_agentic_tool.py +129 -0
- tooluniverse/test/test_alphafold_tool.py +71 -0
- tooluniverse/test/test_chem_tool.py +37 -0
- tooluniverse/test/test_compose_lieraturereview.py +63 -0
- tooluniverse/test/test_compose_tool.py +448 -0
- tooluniverse/test/test_dailymed.py +69 -0
- tooluniverse/test/test_dataset_tool.py +200 -0
- tooluniverse/test/test_disease_target_score.py +56 -0
- tooluniverse/test/test_drugbank_filter_examples.py +179 -0
- tooluniverse/test/test_efo.py +31 -0
- tooluniverse/test/test_enrichr_tool.py +21 -0
- tooluniverse/test/test_europe_pmc_tool.py +20 -0
- tooluniverse/test/test_fda_adv.py +95 -0
- tooluniverse/test/test_fda_drug_labeling.py +91 -0
- tooluniverse/test/test_gene_ontology_tools.py +66 -0
- tooluniverse/test/test_gwas_tool.py +139 -0
- tooluniverse/test/test_hpa.py +625 -0
- tooluniverse/test/test_humanbase_tool.py +20 -0
- tooluniverse/test/test_idmap_tools.py +61 -0
- tooluniverse/test/test_mcp_server.py +211 -0
- tooluniverse/test/test_mcp_tool.py +247 -0
- tooluniverse/test/test_medlineplus.py +220 -0
- tooluniverse/test/test_openalex_tool.py +32 -0
- tooluniverse/test/test_opentargets.py +28 -0
- tooluniverse/test/test_pubchem_tool.py +116 -0
- tooluniverse/test/test_pubtator_tool.py +37 -0
- tooluniverse/test/test_rcsb_pdb_tool.py +86 -0
- tooluniverse/test/test_reactome.py +54 -0
- tooluniverse/test/test_semantic_scholar_tool.py +24 -0
- tooluniverse/test/test_software_tools.py +147 -0
- tooluniverse/test/test_tool_description_optimizer.py +49 -0
- tooluniverse/test/test_tool_finder.py +26 -0
- tooluniverse/test/test_tool_finder_llm.py +252 -0
- tooluniverse/test/test_tools_find.py +195 -0
- tooluniverse/test/test_uniprot_tools.py +74 -0
- tooluniverse/test/test_uspto_tool.py +72 -0
- tooluniverse/test/test_xml_tool.py +113 -0
- tooluniverse/tool_finder_embedding.py +267 -0
- tooluniverse/tool_finder_keyword.py +693 -0
- tooluniverse/tool_finder_llm.py +699 -0
- tooluniverse/tool_graph_web_ui.py +955 -0
- tooluniverse/tool_registry.py +416 -0
- tooluniverse/uniprot_tool.py +155 -0
- tooluniverse/url_tool.py +253 -0
- tooluniverse/uspto_tool.py +240 -0
- tooluniverse/utils.py +369 -41
- tooluniverse/xml_tool.py +369 -0
- tooluniverse-1.0.0.dist-info/METADATA +377 -0
- tooluniverse-1.0.0.dist-info/RECORD +186 -0
- tooluniverse-1.0.0.dist-info/entry_points.txt +9 -0
- tooluniverse/generate_mcp_tools.py +0 -113
- tooluniverse/mcp_server.py +0 -3340
- tooluniverse-0.2.0.dist-info/METADATA +0 -139
- tooluniverse-0.2.0.dist-info/RECORD +0 -21
- tooluniverse-0.2.0.dist-info/entry_points.txt +0 -4
- {tooluniverse-0.2.0.dist-info → tooluniverse-1.0.0.dist-info}/WHEEL +0 -0
- {tooluniverse-0.2.0.dist-info → tooluniverse-1.0.0.dist-info}/licenses/LICENSE +0 -0
- {tooluniverse-0.2.0.dist-info → tooluniverse-1.0.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "MedlinePlus_search_topics_by_keyword",
|
|
4
|
+
"description": "Search for relevant information in MedlinePlus Web Service by keyword across health topics or other sub-libraries (such as drugs, genetics, etc.).",
|
|
5
|
+
"parameter": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"term": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Search keyword, e.g., \"diabetes\", needs to be URL encoded before passing."
|
|
11
|
+
},
|
|
12
|
+
"db": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": ["healthTopics", "healthTopicsSpanish", "drugs", "drugsSpanish", "genetics", "medicalTests", "medicalEncyclopedia"],
|
|
15
|
+
"description": "Specify the database to search, e.g., healthTopics (English health topics), healthTopicsSpanish (Spanish health topics), drugs (English drugs), etc."
|
|
16
|
+
},
|
|
17
|
+
"rettype": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["brief", "topic", "all"],
|
|
20
|
+
"description": "Result return format, options: brief (concise information, default), topic (detailed XML record), all (includes all available information).",
|
|
21
|
+
"default": "topic"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": ["term", "db"]
|
|
25
|
+
},
|
|
26
|
+
"fields": {
|
|
27
|
+
"endpoint": "https://wsearch.nlm.nih.gov/ws/query?db={db}&term={term}&rettype={rettype}",
|
|
28
|
+
"input_description": "Input parameters:\n- term: keyword to search (URL encoded);\n- db: database name, e.g., healthTopics, drugs, etc.;\n- rettype: return format, options: brief, topic, all.",
|
|
29
|
+
"output_description": "Returns MedlinePlus Web Service response XML, will contain title, summary, links, etc. for matching topics, the returned data will be parsed into a Python dictionary for subsequent use."
|
|
30
|
+
},
|
|
31
|
+
"type": "MedlinePlusRESTTool"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "MedlinePlus_connect_lookup_by_code",
|
|
35
|
+
"description": "Look up corresponding MedlinePlus page information through MedlinePlus Connect Web Service using clinical/drug/test codes (such as ICD-10 CM, RXCUI, LOINC, etc.), supports JSON or XML format return.",
|
|
36
|
+
"parameter": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"cs": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Code system OID, e.g., ICD-10 CM=2.16.840.1.113883.6.90, RXCUI=2.16.840.1.113883.6.88, LOINC=2.16.840.1.113883.6.1, etc."
|
|
42
|
+
},
|
|
43
|
+
"c": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "Specific code value to query, e.g., \"E11.9\" (ICD-10 CM) or \"637188\" (RXCUI)."
|
|
46
|
+
},
|
|
47
|
+
"dn": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Optional, descriptive name (English) corresponding to the code, for drugs can fill in \"Chantix 0.5 MG Oral Tablet\", can improve matching accuracy.",
|
|
50
|
+
"default": ""
|
|
51
|
+
},
|
|
52
|
+
"language": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"enum": ["en", "es"],
|
|
55
|
+
"description": "Return information language, \"en\" for English, \"es\" for Spanish, default \"en\".",
|
|
56
|
+
"default": "en"
|
|
57
|
+
},
|
|
58
|
+
"format": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"enum": ["json", "xml"],
|
|
61
|
+
"description": "Return format, options \"json\" or \"xml\", default \"json\".",
|
|
62
|
+
"default": "json"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": ["cs", "c"]
|
|
66
|
+
},
|
|
67
|
+
"fields": {
|
|
68
|
+
"endpoint": "https://connect.medlineplus.gov/service?mainSearchCriteria.v.cs={cs}&mainSearchCriteria.v.c={c}&informationRecipient.languageCode.c={language}&knowledgeResponseType={format}&mainSearchCriteria.v.dn={dn}",
|
|
69
|
+
"input_description": "Input parameters:\n- cs: code system OID;\n- c: specific code value;\n- dn: optional code descriptive name;\n- language: return language (en or es);\n- format: return format (json or xml).",
|
|
70
|
+
"output_description": "Returns MedlinePlus Connect Web Service response, can include title, links, summary, etc. of MedlinePlus pages matching the code. If format=json, returns JSON format and parses to Python dictionary; if format=xml, returns XML and converts it to dictionary."
|
|
71
|
+
},
|
|
72
|
+
"type": "MedlinePlusRESTTool"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "MedlinePlus_get_genetics_condition_by_name",
|
|
76
|
+
"description": "Get detailed information from MedlinePlus Genetics corresponding to genetic condition name, supports JSON or XML format return.",
|
|
77
|
+
"parameter": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"properties": {
|
|
80
|
+
"condition": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "URL slug of genetic condition, e.g., \"alzheimer-disease\", must match MedlinePlus page path."
|
|
83
|
+
},
|
|
84
|
+
"format": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"enum": ["json", "xml"],
|
|
87
|
+
"description": "Return format, options \"json\" or \"xml\", default \"json\".",
|
|
88
|
+
"default": "json"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"required": ["condition"]
|
|
92
|
+
},
|
|
93
|
+
"fields": {
|
|
94
|
+
"endpoint": "https://medlineplus.gov/download/genetics/condition/{condition}.{format}",
|
|
95
|
+
"input_description": "Input parameters:\n- condition: genetic condition name (URL slug), e.g., \"alzheimer-disease\";\n- format: return format (json or xml).",
|
|
96
|
+
"output_description": "Returns JSON or XML data containing detailed information about the genetic condition, data includes consumer version description, symptoms, gene information, treatment options, etc., return value will be parsed into Python dictionary or OrderedDict for subsequent use."
|
|
97
|
+
},
|
|
98
|
+
"type": "MedlinePlusRESTTool"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "MedlinePlus_get_genetics_gene_by_name",
|
|
102
|
+
"description": "Get detailed information from MedlinePlus Genetics corresponding to gene name, supports JSON or XML format return.",
|
|
103
|
+
"parameter": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"properties": {
|
|
106
|
+
"gene": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"description": "URL slug of gene name, e.g., \"BRCA1\", must match MedlinePlus page path."
|
|
109
|
+
},
|
|
110
|
+
"format": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"enum": ["json", "xml"],
|
|
113
|
+
"description": "Return format, options \"json\" or \"xml\", default \"json\".",
|
|
114
|
+
"default": "json"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"required": ["gene"]
|
|
118
|
+
},
|
|
119
|
+
"fields": {
|
|
120
|
+
"endpoint": "https://medlineplus.gov/download/genetics/gene/{gene}.{format}",
|
|
121
|
+
"input_description": "Input parameters:\n- gene: gene name (URL slug), e.g., \"BRCA1\";\n- format: return format (json or xml).",
|
|
122
|
+
"output_description": "Returns JSON or XML data containing detailed gene information, including consumer version description, gene function, related genetic conditions, gene structure, etc., return result will be parsed into Python dictionary or OrderedDict."
|
|
123
|
+
},
|
|
124
|
+
"type": "MedlinePlusRESTTool"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "MedlinePlus_get_genetics_index",
|
|
128
|
+
"description": "Download index file (XML) of all genetics entries in MedlinePlus, get complete list in one call.",
|
|
129
|
+
"parameter": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"properties": {},
|
|
132
|
+
"required": []
|
|
133
|
+
},
|
|
134
|
+
"fields": {
|
|
135
|
+
"endpoint": "https://medlineplus.gov/download/TopicIndex.xml",
|
|
136
|
+
"input_description": "No input parameters needed, directly call to get complete genetics index.",
|
|
137
|
+
"output_description": "Returns XML index containing all genetics entries, data will be parsed into Python dictionary or OrderedDict, can be used for offline caching or batch processing."
|
|
138
|
+
},
|
|
139
|
+
"type": "MedlinePlusRESTTool"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "OpenAlexTool",
|
|
4
|
+
"name": "openalex_literature_search",
|
|
5
|
+
"description": "Search for academic literature using OpenAlex API. Retrieves papers with title, abstract, authors, publication year, and organizational affiliations based on search keywords.",
|
|
6
|
+
"parameter": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"search_keywords": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Keywords to search for in paper titles, abstracts, and content. Use relevant scientific terms or phrases."
|
|
12
|
+
},
|
|
13
|
+
"max_results": {
|
|
14
|
+
"type": "integer",
|
|
15
|
+
"description": "Maximum number of papers to retrieve (default: 10, maximum: 200).",
|
|
16
|
+
"default": 10,
|
|
17
|
+
"minimum": 1,
|
|
18
|
+
"maximum": 200
|
|
19
|
+
},
|
|
20
|
+
"year_from": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"description": "Start year for publication date filter (e.g., 2020). Optional parameter to limit search to papers published from this year onwards."
|
|
23
|
+
},
|
|
24
|
+
"year_to": {
|
|
25
|
+
"type": "integer",
|
|
26
|
+
"description": "End year for publication date filter (e.g., 2023). Optional parameter to limit search to papers published up to this year."
|
|
27
|
+
},
|
|
28
|
+
"open_access": {
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"description": "Filter for open access papers only. Set to true for open access papers, false for non-open access, or omit for all papers."
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": ["search_keywords"]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "AgenticTool",
|
|
4
|
+
"name": "ToolOutputSummarizer",
|
|
5
|
+
"description": "AI-powered tool for summarizing long tool outputs, focusing on key information relevant to the original query",
|
|
6
|
+
"prompt": "You are an expert at summarizing tool outputs. Your task is to analyze the provided tool output and create a concise summary that highlights the most important information relevant to the original query.\n\nTool Output to Summarize:\n{tool_output}\n\nOriginal Query Context:\n{query_context}\n\nTool Name: {tool_name}\nFocus Areas: {focus_areas}\nMaximum Summary Length: {max_length}\n\nPlease provide a well-structured summary that:\n1. Captures the key findings and results\n2. Highlights important data points and metrics\n3. Preserves critical technical details\n4. Maintains the essential structure of the original output\n5. Focuses on information most relevant to the query\n\nReturn the summary in a clear, organized format.",
|
|
7
|
+
"input_arguments": ["tool_output", "query_context", "tool_name", "focus_areas", "max_length"],
|
|
8
|
+
"parameter": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"tool_output": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "The original tool output to be summarized",
|
|
14
|
+
"required": true
|
|
15
|
+
},
|
|
16
|
+
"query_context": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Context about the original query that triggered the tool",
|
|
19
|
+
"required": true
|
|
20
|
+
},
|
|
21
|
+
"tool_name": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "Name of the tool that generated the output",
|
|
24
|
+
"required": true
|
|
25
|
+
},
|
|
26
|
+
"focus_areas": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Specific areas to focus on in the summary",
|
|
29
|
+
"required": false,
|
|
30
|
+
"default": "key_findings_and_results"
|
|
31
|
+
},
|
|
32
|
+
"max_length": {
|
|
33
|
+
"type": "integer",
|
|
34
|
+
"description": "Maximum length of the summary in characters",
|
|
35
|
+
"required": false,
|
|
36
|
+
"default": 32000
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": ["tool_output", "query_context", "tool_name"]
|
|
40
|
+
},
|
|
41
|
+
"configs": {
|
|
42
|
+
"api_type": "CHATGPT",
|
|
43
|
+
"model_id": "gpt-4o-1120",
|
|
44
|
+
"temperature": 0.3,
|
|
45
|
+
"max_new_tokens": 2048,
|
|
46
|
+
"return_json": false,
|
|
47
|
+
"return_metadata": false
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"type": "ComposeTool",
|
|
52
|
+
"name": "OutputSummarizationComposer",
|
|
53
|
+
"description": "Composes output summarization workflow by chunking long outputs, processing each chunk with AI summarization, and merging results",
|
|
54
|
+
"parameter": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"tool_output": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "The original tool output to be summarized",
|
|
60
|
+
"required": true
|
|
61
|
+
},
|
|
62
|
+
"query_context": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "Context about the original query",
|
|
65
|
+
"required": true
|
|
66
|
+
},
|
|
67
|
+
"tool_name": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "Name of the tool that generated the output",
|
|
70
|
+
"required": true
|
|
71
|
+
},
|
|
72
|
+
"chunk_size": {
|
|
73
|
+
"type": "integer",
|
|
74
|
+
"description": "Size of each chunk for processing",
|
|
75
|
+
"required": false,
|
|
76
|
+
"default": 2000
|
|
77
|
+
},
|
|
78
|
+
"focus_areas": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "Areas to focus on in summarization",
|
|
81
|
+
"required": false,
|
|
82
|
+
"default": "key_findings_and_results"
|
|
83
|
+
},
|
|
84
|
+
"max_summary_length": {
|
|
85
|
+
"type": "integer",
|
|
86
|
+
"description": "Maximum length of final summary",
|
|
87
|
+
"required": false,
|
|
88
|
+
"default": 3000
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"required": ["tool_output", "query_context", "tool_name"]
|
|
92
|
+
},
|
|
93
|
+
"auto_load_dependencies": true,
|
|
94
|
+
"fail_on_missing_tools": false,
|
|
95
|
+
"required_tools": [
|
|
96
|
+
"ToolOutputSummarizer"
|
|
97
|
+
],
|
|
98
|
+
"composition_file": "output_summarizer.py",
|
|
99
|
+
"composition_function": "compose"
|
|
100
|
+
}
|
|
101
|
+
]
|