Search models
Tool for searching models based on search query.
SearchModelsInput
Bases: BaseModel
Input schema for the search models tool.
Source code in aiagents4pharma/talk2biomodels/tools/search_models.py
16 17 18 19 20 21 |
|
SearchModelsTool
Bases: BaseTool
Tool for returning the search results based on the search query.
Source code in aiagents4pharma/talk2biomodels/tools/search_models.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|
_run(query, state)
Run the tool.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query
|
str
|
The search query. |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
dict
|
The answer to the question in the form of a dictionary. |
Source code in aiagents4pharma/talk2biomodels/tools/search_models.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|