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
21 22 23 24 25 26 27 28 29 |
|
SearchModelsTool
Bases: BaseTool
Tool for returning the search results based on the search query.
Source code in aiagents4pharma/talk2biomodels/tools/search_models.py
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 75 76 77 78 79 80 81 82 83 84 85 |
|
description = 'Search for only manually curated models in '
class-attribute
instance-attribute
the BioMmodels database based on keywords.
_run(tool_call_id, query=None, num_query=10)
Run the tool.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query
|
str
|
The search query. |
None
|
num_query
|
int
|
The number of models to search. |
10
|
tool_call_id
|
str
|
The tool call ID. |
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
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 75 76 77 78 79 80 81 82 83 84 85 |
|