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 themodel
back to its original statereplace_template_name_request
: replaces the templateold_name
withnew_name
replace_state_name_request
: replaces the state’sold_name
withnew_name
for a givenmodel
andtemplate_name
- Add Template:
add_natural_conversion_template_request
add_natural_production_template_request
add_natural_degradation_template_request
add_controlled_conversion_template_request
add_controlled_production_template_request
add_controlled_degradation_template_request
remove_template_request
: Removes an existing template from the model provided atemplate_name
add_parameter_request
: Adds a new parameter to the model.update_parameter_request
Updates an existing parameter in the model.add_observable_template_request
Add a new observable to the model.remove_observable_template_request
Remove an existing observable from the model.replace_ratelaw_request
update 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 S
Add 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.