MCPcopy Create free account
hub / github.com/vercel/examples / IDEContext

Class IDEContext

python/vibe-coding-ide/backend/src/agent/context.py:5–34  ·  view source on GitHub ↗

State container for an IDE agent run. Attributes: project: Mapping of file paths to file contents. exec_result: Optional code execution result returned by the UI. events: Structured tool events accumulated during a run. defer_requested: True if the agent requeste

Source from the content-addressed store, hash-verified

3
4
5class IDEContext(BaseModel):
6 """State container for an IDE agent run.
7
8 Attributes:
9 project: Mapping of file paths to file contents.
10 exec_result: Optional code execution result returned by the UI.
11 events: Structured tool events accumulated during a run.
12 defer_requested: True if the agent requested code execution and paused.
13 base_payload: Original request payload fields used for resume tokens.
14 """
15
16 project: dict[str, str]
17 exec_result: str | None = None
18 events: list[dict[str, Any]] = Field(default_factory=list)
19 defer_requested: bool = False
20 base_payload: dict[str, Any] = Field(default_factory=dict)
21
22 # Multi-sandbox support
23 # Active sandbox name used when a name is not explicitly provided
24 active_sandbox: str | None = None
25 # Map a sandbox name to its sandbox_id
26 sandbox_name_to_id: dict[str, str] = Field(default_factory=dict)
27 # Per-sandbox runtime and ports preferences
28 sandbox_runtime_map: dict[str, str] = Field(default_factory=dict)
29 sandbox_ports_map: dict[str, list[int]] = Field(default_factory=dict)
30 # Per-sandbox environment variables
31 sandbox_envs: dict[str, dict[str, str]] = Field(default_factory=dict)
32 # Per-sandbox filesystem snapshots
33 sandbox_files_map: dict[str, list[str]] = Field(default_factory=dict)
34 sandbox_file_meta_map: dict[str, dict[str, str]] = Field(default_factory=dict)

Callers 2

run_agent_flowFunction · 0.90
resume_agent_flowFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected