espnet3.bin.atlas.core.models.AgentRequest
espnet3.bin.atlas.core.models.AgentRequest
class espnet3.bin.atlas.core.models.AgentRequest(task: str, objective: str, knowledge: str, repo_context: str, trial_history_csv: str, latest_metrics: dict[str, ~typing.Any], context_files: dict[str, str], allowed_actions: list[str], output_schema: dict[str, ~typing.Any], inflight_patches: list[dict] = <factory>, resume_thread_id: str | None = None)
Bases: object
One task sent to the configured coding agent (Codex or Claude Code).
Built by SkillStage.run from the study’s objective, knowledge pack, trial history, and the node’s skill context.
- Parameters:
- task – Skill/task name the agent should perform.
- objective – Study objective text (usually
program.md). - knowledge – Accumulated knowledge-pack text, or “” if none yet.
- repo_context – Cached repository-context text, or “” if none yet.
- trial_history_csv – Current
trials.csvcontent, or “”. - latest_metrics – The current trial’s metrics dict, or
{}. - context_files – Extra named text/context passed to the agent (study dir, trial dir, serialized current trial, etc.).
- allowed_actions – Action set the agent may use (e.g. whether it may edit files or only read).
- output_schema – JSON Schema of the structured response the agent must return; empty for a free-form reply.
- inflight_patches – Config patches from trials still running, so the agent avoids proposing the same change twice.
- resume_thread_id – Prior Codex/Claude thread id to resume, or
Noneto start a new conversation.
allowed_actions : list[str]
context_files : dict[str, str]
inflight_patches : list[dict]
knowledge : str
latest_metrics : dict[str, Any]
objective : str
output_schema : dict[str, Any]
repo_context : str
resume_thread_id : str | None = None
task : str
trial_history_csv : str
