sensai
¶
SensAI API router for the Dojo dashboard.
HistoryEntry
¶
Bases: BaseModel
A single prior turn in the conversation.
Returned by:
-
Code Reference
mujoco_mojoutilslayersdojorouterssensaiChatRequestmessage_history
ChatRequest
¶
Bases: BaseModel
Request body for the chat endpoint.
message_history
class-attribute
instance-attribute
¶
Python
message_history: list[HistoryEntry] = Field(
default_factory=list
)
Prior conversation turns, oldest first, used to maintain context across requests.
all_columns
class-attribute
instance-attribute
¶
All signal column names currently loaded in the trial viewer.
rotatable_vectors
class-attribute
instance-attribute
¶
Signal columns that can be rotated using a quaternion.
available_quats
class-attribute
instance-attribute
¶
Quaternion column names available for rotating rotatable_vectors.
get_config
async
¶
Python
get_config() -> SensAISettings
post_config
async
¶
Python
post_config(body: SensAISettings) -> SensAISettings
Persists updated SensAI settings to disk.
Source code in src/mujoco_mojo/utils/layers/dojo/routers/sensai.py
post_chat
async
¶
Python
post_chat(body: ChatRequest) -> EventSourceResponse
Runs the SensAI agents and streams the response as SSE.
Source code in src/mujoco_mojo/utils/layers/dojo/routers/sensai.py
| Python | |
|---|---|
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 | |