mira_model_edit
This context is used for editing models via Mira with a specific focus on fine-grained state and transition manipulation. This context was created by Uncharted. On setup it expects a model id to be provided; unlike other contexts the key is always id and the value is the model id. For example:
{
"id": "sir-model-id"
}
Note: after setup, the model is accessible via the variable name
model.
This context has 16 custom message types These will provide codeblocks which often have documentation within them to be provided to the user
reset_request: resets themodelback to its original statereplace_template_name_request: replaces the templateold_namewithnew_namereplace_state_name_request: replaces the state’sold_namewithnew_namefor a givenmodelandtemplate_name- Add Template:
add_natural_conversion_template_requestadd_natural_production_template_requestadd_natural_degradation_template_requestadd_controlled_conversion_template_requestadd_controlled_production_template_requestadd_controlled_degradation_template_request remove_template_request: Removes an existing template from the model provided atemplate_nameadd_parameter_request: Adds a new parameter to the model.update_parameter_requestUpdates an existing parameter in the model.add_observable_template_requestAdd a new observable to the model.remove_observable_template_requestRemove an existing observable from the model.replace_ratelaw_requestupdate the value of a ratelaw in the model.amr_to_templates: Breaks down an AMR into its template components.
Sample agent questions and their corresponding tool:
Adding templates:
-
Natural Conversion:
Add a new transition from S to R with the name vaccine with the rate of v.Add a new transition from I to D. Name the transition unlucky and give it a rate of I*u -
Controlled Conversion:
Add a new transition from S to R with the name vaccine with the rate of v. v depends on SAdd a new transition from I to D. Name the transition unlucky that has a dependency on R. The rate is I*R*u -
Natural Production:
Add a new transition from the transition rec to S with a rate of f.add a new transition (from nowhere) to S with a rate constant of f -
Controlled Production:
Add a new transition from the transition rec to S with a rate of f. f depends on R.add a new transition (from nowhere) to S with a rate constant of f. The rate depends on R -
Natural Degredation:
Add a new transition from state S to transition rec with a rate of v.add a new transition from S (to nowhere) with a rate constant of v -
Controlled Degredation:
Add a new transition from S to rec with a rate of v. v depends on R.add a new transition from S (to nowhere) with a rate constant of v. The Rate depends on R
Observables:
Add an observable titled noninf with the expression S+R.Remove the noninf observable.
Renaming:
Rename the state S to Susceptible in the infection transition.Rename the transition infection to inf.