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 anameand saves the model as a new model inhmi-server, returning the new modelsid. Optionally takes in aproject_idto save the model into the project.amr_to_templates: converts AMR in JSON format to a Mira Template Model. Optionally acceptsmodel_namewhich defaults tomodel–the variable where the AMR JSON is stored in contextstratify_request: stratifies the model based onstratify_argsprovided. Optionally acceptsmodel_namewhich defaults tomodel–the variable where the AMR JSON is stored in contextreset_request: resets themodelback to its original state