MCPcopy Index your code
hub / github.com/github/copilot-sdk / _require_storage_for_empty_mode

Function _require_storage_for_empty_mode

python/copilot/_mode.py:319–334  ·  view source on GitHub ↗
(
    *,
    mode: CopilotClientMode | None,
    base_directory: str | None,
    session_fs_set: bool,
    is_uri_connection: bool,
)

Source from the content-addressed store, hash-verified

317
318
319def _require_storage_for_empty_mode(
320 *,
321 mode: CopilotClientMode | None,
322 base_directory: str | None,
323 session_fs_set: bool,
324 is_uri_connection: bool,
325) -> None:
326 if mode != "empty":
327 return
328 if base_directory or session_fs_set or is_uri_connection:
329 return
330 raise ValueError(
331 "CopilotClient(mode='empty') requires base_directory, session_fs, "
332 "or a UriRuntimeConnection. Empty mode needs explicit per-tenant "
333 "storage and won't fall back to ~/.copilot."
334 )
335
336
337def _require_available_tools_for_empty_mode(

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…