mira_model
This context is used for editing models via Mira. 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’s LLM agent supports generic code generation using Mira with a specific focus on stratification. Users have the ability to ask to perform a stratification (e.g. “Stratify my model into two cities: Boston and New York”).
This context has
This context has 4 custom message types:
save_amr_request
: takes in aname
and saves the model as a new model inhmi-server
, returning the new modelsid
. Optionally takes in aproject_id
to save the model into the project.amr_to_templates
: converts AMR in JSON format to a Mira Template Model. Optionally acceptsmodel_name
which defaults tomodel
–the variable where the AMR JSON is stored in contextstratify_request
: stratifies the model based onstratify_args
provided. Optionally acceptsmodel_name
which defaults tomodel
–the variable where the AMR JSON is stored in contextreset_request
: resets themodel
back to its original state