MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / ContextKeys

Class ContextKeys

src/harness/types/context.py:10–75  ·  view source on GitHub ↗

Standard keys used in workflow context dictionaries. These constants provide type-safe access to context dictionary entries, preventing typos and enabling IDE autocompletion. Example: context[ContextKeys.PREV_OUTPUT] = result if context.get(ContextKeys.STOP_ON_RETURN):

Source from the content-addressed store, hash-verified

8
9
10class ContextKeys:
11 """Standard keys used in workflow context dictionaries.
12
13 These constants provide type-safe access to context dictionary entries,
14 preventing typos and enabling IDE autocompletion.
15
16 Example:
17 context[ContextKeys.PREV_OUTPUT] = result
18 if context.get(ContextKeys.STOP_ON_RETURN):
19 return
20 """
21
22 # Task identification
23 TASK_NAME: Final[str] = "task_name"
24 TASK_OUTPUT_DIR: Final[str] = "task_output_dir"
25 GOAL: Final[str] = "goal"
26
27 # Workflow paths
28 WORKFLOW_FILE: Final[str] = "workflow_file"
29 WORKFLOW_DIR: Final[str] = "workflow_dir"
30 WORKFLOW_ROOT: Final[str] = "workflow_root"
31
32 # Execution state
33 PREV_OUTPUT: Final[str] = "prev_output"
34 CONVERSATION_HISTORY: Final[str] = "conversation_history"
35
36 # Submodule configuration
37 SUBMODULE_TOOLS: Final[str] = "submodule_tools"
38 SUBMODULE_REGISTRY: Final[str] = "submodule_registry"
39 ENABLED_SUBMODULES: Final[str] = "enabled_submodules"
40 EXPOSE_SUBMODULES_AS_TOOLS: Final[str] = "expose_submodules_as_tools"
41
42 # Tool configuration
43 ENABLED_TOOLS: Final[str] = "enabled_tools"
44
45 # Prompt configuration
46 SYSTEM_PROMPT: Final[str] = "system_prompt"
47
48 # Environment configuration
49 CODE_PATH: Final[str] = "code_path"
50 CONDA_ENV_NAME: Final[str] = "conda_env_name"
51
52 # Flow control
53 STOP_ON_RETURN: Final[str] = "stop_on_return"
54 STOP_ON_SUBMODULE_RESULT: Final[str] = "stop_on_submodule_result"
55 MAX_WORKFLOW_STEPS: Final[str] = "max_workflow_steps"
56 REQUIRE_SUBMODULE_SUBMIT: Final[str] = "require_submodule_submit"
57
58 # Inline tool calls
59 ENABLE_INLINE_TOOL_CALLS: Final[str] = "enable_inline_tool_calls"
60 INLINE_TOOL_CALLS_ONLY: Final[str] = "inline_tool_calls_only"
61 ALLOW_INLINE_TOOLS_WITHOUT_ENABLE: Final[str] = "allow_inline_tools_without_enable"
62
63 # Execution guardrails (opt-in); swebench_mode enables all of them at once
64 SWEBENCH_MODE: Final[str] = "swebench_mode"
65 ENABLE_GIT_FILTERING: Final[str] = "enable_git_filtering"
66 REQUIRE_THOUGHT_SECTION: Final[str] = "require_thought_section"
67

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected