plot_config_agent
¶
SensAI domain agent for the trial viewer plot - full CRUD over saved plot config profiles.
get_current_plot_config
async
¶
get_current_plot_config(ctx: RunContext[SensAIDeps]) -> str
Returns the full trial viewer plot configuration as JSON. Call this before proposing any config update.
Source code in src/mujoco_mojo/utils/layers/dojo/sensai/plot_config_agent.py
get_plotted_signals
async
¶
get_plotted_signals(
ctx: RunContext[SensAIDeps],
) -> list[str]
Returns the y-axis signal column names currently displayed in the trial viewer plot.
Source code in src/mujoco_mojo/utils/layers/dojo/sensai/plot_config_agent.py
| Python | |
|---|---|
get_x_axis_signal
async
¶
get_x_axis_signal(ctx: RunContext[SensAIDeps]) -> str
Returns the column name used as the x-axis in the trial viewer plot.
Source code in src/mujoco_mojo/utils/layers/dojo/sensai/plot_config_agent.py
list_saved_plot_configs
¶
List the names of every saved plot config profile.
Returns:
| Type | Description |
|---|---|
list[str]
|
Every saved profile's name (including sub-folder paths, e.g. 'robotics/baseline'), most recently modified first. |
Source code in src/mujoco_mojo/utils/layers/dojo/sensai/plot_config_agent.py
load_plot_config
¶
load_plot_config(name: str) -> PlotConfig
Load a previously saved plot config profile by name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The profile name to load, e.g. 'robotics/baseline'. |
required |
Returns:
| Type | Description |
|---|---|
PlotConfig
|
The profile's active tab's plot config. |
Raises:
| Type | Description |
|---|---|
ModelRetry
|
If no profile with this name exists, so the caller can retry with a corrected name. |