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

Class InstructionsDiscoverRequest

python/copilot/generated/rpc.py:2214–2240  ·  view source on GitHub ↗

Optional project paths to include in instruction discovery.

Source from the content-addressed store, hash-verified

2212# Experimental: this type is part of an experimental API and may change or be removed.
2213@dataclass
2214class InstructionsDiscoverRequest:
2215 """Optional project paths to include in instruction discovery."""
2216
2217 exclude_host_instructions: bool | None = None
2218 """When true, omit the host's instruction sources (user/home-level files and plugin rules),
2219 leaving only repository and working-directory sources. For multitenant deployments.
2220 """
2221 project_paths: list[str] | None = None
2222 """Optional list of project directory paths to scan for repository/working-directory
2223 instruction sources. When omitted or empty, only user-level and plugin instruction
2224 sources are returned (no project scan).
2225 """
2226
2227 @staticmethod
2228 def from_dict(obj: Any) -> 'InstructionsDiscoverRequest':
2229 assert isinstance(obj, dict)
2230 exclude_host_instructions = from_union([from_bool, from_none], obj.get("excludeHostInstructions"))
2231 project_paths = from_union([lambda x: from_list(from_str, x), from_none], obj.get("projectPaths"))
2232 return InstructionsDiscoverRequest(exclude_host_instructions, project_paths)
2233
2234 def to_dict(self) -> dict:
2235 result: dict = {}
2236 if self.exclude_host_instructions is not None:
2237 result["excludeHostInstructions"] = from_union([from_bool, from_none], self.exclude_host_instructions)
2238 if self.project_paths is not None:
2239 result["projectPaths"] = from_union([lambda x: from_list(from_str, x), from_none], self.project_paths)
2240 return result
2241
2242# Experimental: this type is part of an experimental API and may change or be removed.
2243@dataclass

Callers 1

from_dictMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…