environment
diapason.learning.intelligence.orchestrator.environment
¶
RL environment for orchestrator training.
Adapted from IPW's environment.py. Uses Diapason's
:class:~diapason.tools._stubs.ToolExecutor for real tool dispatch
(as opposed to IPW's cached-telemetry approach), making it suitable for
both training and evaluation.
OrchestratorEnvironment
¶
RL environment that executes tools via Diapason ToolExecutor.
Parameters¶
tools:
List of :class:BaseTool instances available to the agent.
max_turns:
Maximum number of turns per episode.
get_available_tools()
¶
Return names of all available tools.
is_done(state)
¶
Check if the episode is complete.
reset(task)
¶
Reset the environment for a new episode.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task
|
str
|
The initial task/question. |
required |
Returns:
| Type | Description |
|---|---|
EpisodeState
|
A fresh :class: |
step(state, action)
¶
Execute one step: dispatch the tool and observe the result.
Raises:
| Type | Description |
|---|---|
ValueError
|
If the tool is not available or max turns exceeded. |