aiagents4pharma 1.7.0__tar.gz → 1.8.0__tar.gz
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.
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/PKG-INFO +1 -1
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2biomodels/tools/custom_plotter.py +13 -3
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2biomodels/tools/search_models.py +1 -1
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2biomodels/tools/simulate_model.py +1 -1
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma.egg-info/PKG-INFO +1 -1
- aiagents4pharma-1.8.0/release_version.txt +1 -0
- aiagents4pharma-1.7.0/release_version.txt +0 -1
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/LICENSE +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/README.md +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/__init__.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2biomodels/__init__.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2biomodels/models/__init__.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2biomodels/models/basico_model.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2biomodels/models/sys_bio_model.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2biomodels/tools/__init__.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2biomodels/tools/ask_question.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2biomodels/tools/get_modelinfo.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2biomodels/tools/load_biomodel.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2cells/__init__.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2cells/agents/__init__.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2cells/agents/scp_agent.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2cells/states/__init__.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2cells/states/state_talk2cells.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2cells/tools/__init__.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2knowledgegraphs/__init__.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2knowledgegraphs/datasets/__init__.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2knowledgegraphs/datasets/biobridge_primekg.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2knowledgegraphs/datasets/dataset.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2knowledgegraphs/datasets/primekg.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2knowledgegraphs/datasets/starkqa_primekg.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2knowledgegraphs/utils/__init__.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/__init__.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/embeddings.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/huggingface.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/sentence_transformer.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2knowledgegraphs/utils/kg_utils.py +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma.egg-info/SOURCES.txt +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma.egg-info/dependency_links.txt +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma.egg-info/requires.txt +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma.egg-info/top_level.txt +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/pyproject.toml +0 -0
- {aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: aiagents4pharma
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.8.0
|
4
4
|
Summary: AI Agents for drug discovery, drug development, and other pharmaceutical R&D
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
6
6
|
Classifier: License :: OSI Approved :: MIT License
|
@@ -6,11 +6,14 @@ Tool for plotting a custom figure.
|
|
6
6
|
|
7
7
|
import logging
|
8
8
|
from typing import Type, List, TypedDict, Annotated, Tuple, Union, Literal
|
9
|
+
from typing import Type, List, TypedDict, Annotated, Tuple, Union, Literal
|
9
10
|
from pydantic import BaseModel, Field
|
10
11
|
import pandas as pd
|
12
|
+
import pandas as pd
|
11
13
|
from langchain_openai import ChatOpenAI
|
12
14
|
from langchain_core.tools import BaseTool
|
13
15
|
from langgraph.prebuilt import InjectedState
|
16
|
+
from langgraph.prebuilt import InjectedState
|
14
17
|
|
15
18
|
# Initialize logger
|
16
19
|
logging.basicConfig(level=logging.INFO)
|
@@ -22,18 +25,23 @@ class CustomPlotterInput(BaseModel):
|
|
22
25
|
"""
|
23
26
|
question: str = Field(description="Description of the plot")
|
24
27
|
state: Annotated[dict, InjectedState]
|
28
|
+
state: Annotated[dict, InjectedState]
|
25
29
|
|
30
|
+
# Note: It's important that every field has type hints.
|
31
|
+
# BaseTool is a Pydantic class and not having type hints
|
32
|
+
# can lead to unexpected behavior.
|
26
33
|
# Note: It's important that every field has type hints.
|
27
34
|
# BaseTool is a Pydantic class and not having type hints
|
28
35
|
# can lead to unexpected behavior.
|
29
36
|
class CustomPlotterTool(BaseTool):
|
30
37
|
"""
|
31
|
-
Tool for
|
38
|
+
Tool for making custom plots
|
32
39
|
"""
|
33
40
|
name: str = "custom_plotter"
|
34
|
-
description: str = "A tool to
|
41
|
+
description: str = "A tool to make custom plots of the simulation results"
|
35
42
|
args_schema: Type[BaseModel] = CustomPlotterInput
|
36
43
|
response_format: str = "content_and_artifact"
|
44
|
+
response_format: str = "content_and_artifact"
|
37
45
|
|
38
46
|
def _run(self,
|
39
47
|
question: str,
|
@@ -45,6 +53,8 @@ class CustomPlotterTool(BaseTool):
|
|
45
53
|
Args:
|
46
54
|
question (str): The question about the custom plot.
|
47
55
|
state (dict): The state of the graph.
|
56
|
+
question (str): The question about the custom plot.
|
57
|
+
state (dict): The state of the graph.
|
48
58
|
|
49
59
|
Returns:
|
50
60
|
str: The answer to the question
|
@@ -66,7 +76,7 @@ class CustomPlotterTool(BaseTool):
|
|
66
76
|
A list of species based on user question.
|
67
77
|
"""
|
68
78
|
relevant_species: Union[None, List[Literal[*species_names]]] = Field(
|
69
|
-
|
79
|
+
description="List of species based on user question. If no relevant species are found, it will be None.")
|
70
80
|
# Create an instance of the LLM model
|
71
81
|
llm = ChatOpenAI(model=state['llm_model'], temperature=0)
|
72
82
|
llm_with_structured_output = llm.with_structured_output(CustomHeader)
|
@@ -27,7 +27,7 @@ class SearchModelsTool(BaseTool):
|
|
27
27
|
Tool for returning the search results based on the search query.
|
28
28
|
"""
|
29
29
|
name: str = "search_models"
|
30
|
-
description: str = "Search models based on
|
30
|
+
description: str = "Search models in the BioMmodels database based on keywords."
|
31
31
|
args_schema: Type[BaseModel] = SearchModelsInput
|
32
32
|
return_direct: bool = True
|
33
33
|
|
@@ -99,7 +99,7 @@ class SimulateModelTool(BaseTool):
|
|
99
99
|
Tool for simulating a model.
|
100
100
|
"""
|
101
101
|
name: str = "simulate_model"
|
102
|
-
description: str = "A tool to simulate a
|
102
|
+
description: str = "A tool to simulate a biomodel"
|
103
103
|
args_schema: Type[BaseModel] = SimulateModelInput
|
104
104
|
|
105
105
|
def _run(self,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: aiagents4pharma
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.8.0
|
4
4
|
Summary: AI Agents for drug discovery, drug development, and other pharmaceutical R&D
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
6
6
|
Classifier: License :: OSI Approved :: MIT License
|
@@ -0,0 +1 @@
|
|
1
|
+
v1.8.0
|
@@ -1 +0,0 @@
|
|
1
|
-
v1.7.0
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2biomodels/models/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2biomodels/tools/__init__.py
RENAMED
File without changes
|
{aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2biomodels/tools/ask_question.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2cells/agents/__init__.py
RENAMED
File without changes
|
{aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2cells/agents/scp_agent.py
RENAMED
File without changes
|
{aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2cells/states/__init__.py
RENAMED
File without changes
|
File without changes
|
{aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2cells/tools/__init__.py
RENAMED
File without changes
|
{aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma/talk2knowledgegraphs/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{aiagents4pharma-1.7.0 → aiagents4pharma-1.8.0}/aiagents4pharma.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|