docs_agent
¶
SensAI domain agent for questions about how to use MuJoCo Mojo, answered from the docs that ship with the package.
search_docs
¶
Finds the parts of the Mojo docs that best match some words, best first.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str
|
What to look for, in a few words such as "submit a job to SLURM" or "early termination of a requirement". Plain words are enough: how, the and similar words are ignored, and an ending such as -ing or -s does not matter. |
required |
Returns:
| Type | Description |
|---|---|
str
|
Up to five matches, each with the page's path, the section, the line that matched best and the docs site link. Nothing matched is said in words. |
Source code in src/mujoco_mojo/utils/layers/dojo/sensai/docs_agent.py
read_docs
¶
Reads a page of the Mojo docs, or one section of it, with its title and docs site link on top.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
The page's path, as the list in your instructions and the search results give it, such as "user-guides/workflow/running-jobs/running-jobs.md". |
required |
section
|
str
|
Leave it out to read the whole page. To read one part of it, a heading of that page such as "SLURM Mode": the section and the ones under it are returned. A long page comes back cut, with a list of its sections to ask for. |
''
|
Returns:
| Type | Description |
|---|---|
str
|
The text of the page or section. A path or section that is not there is answered with the ones that are. |
Source code in src/mujoco_mojo/utils/layers/dojo/sensai/docs_agent.py
read_settings
¶
Reads the settings of MuJoCo Mojo: each one's key, the label the settings panel shows for it, the values it takes, its default and what it does.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
section
|
str
|
Leave it out to list the sections. To read one, its name such as "dojo" or "dojo.sensai". To find settings by words instead, a few words such as "fullscreen" or "play a sound when the job ends". |
''
|
Returns:
| Type | Description |
|---|---|
str
|
The settings of that section, or the ones that match the words, and how to change a setting with a link to the settings panel. Nothing matched is answered with the list of sections. |