feat: simulate and query multiple models #71
Merged
+221
−103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For authors
Description
T2Bdemo3.mp4
This PR introduces the capability to simulate and query multiple models within T2B. Key updates include enhancements to the state key
dic_simulated_data
, which now stores the results of all simulations conducted by the user. The structure ofdic_simulated_data
has been updated to hold a list of dictionaries, each containing simulation data the following keys:name
: A unique identifier assigned to the simulation by the LLM.source
: Indicates whether the model was uploaded by the user or loaded from the BioModels database.data
: The simulation results associated with the model.tool_call_id
: A unique identifier automatically assigned to the toolsimulate_tool
when the simulation request was made.With this update, the LLM can leverage the state key
dic_simulated_data
to retrieve results from previous simulations. This enables answering user queries about specific simulations and generates custom plots.The demo provided illustrates these updates in action.
Fixes # (issue) NA
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests you conducted to verify your changes. These may involve creating new test scripts or updating existing ones.
tests
foldertests/testX.py
)Checklist
tests
folder) that prove my fix is effective or that my feature worksFor reviewers
Checklist pre-approval
Checklist post-approval
develop
intomain
? If so, please make sure to add a prefix (feat/fix/chore) and/or a suffix BREAKING CHANGE (if it's a major release) to your commit message.Checklist post-merge
develop
intomain
and is it suppose to run an automated release workflow (if applicable)? If so, please make sure to check under the "Actions" tab to see if the workflow has been initiated, and return later to verify that it has completed successfully.