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

Class AgentsDiscoverRequest

python/copilot/generated/rpc.py:524–549  ·  view source on GitHub ↗

Optional project paths to include in agent discovery.

Source from the content-addressed store, hash-verified

522# Experimental: this type is part of an experimental API and may change or be removed.
523@dataclass
524class AgentsDiscoverRequest:
525 """Optional project paths to include in agent discovery."""
526
527 exclude_host_agents: bool | None = None
528 """When true, omit the host's agents (the user-level agent directory and all plugin agents),
529 leaving only project and remote agents. For multitenant deployments.
530 """
531 project_paths: list[str] | None = None
532 """Optional list of project directory paths to scan for project-scoped agents. When omitted
533 or empty, only user/plugin/remote-independent agents are returned (no project scan).
534 """
535
536 @staticmethod
537 def from_dict(obj: Any) -> 'AgentsDiscoverRequest':
538 assert isinstance(obj, dict)
539 exclude_host_agents = from_union([from_bool, from_none], obj.get("excludeHostAgents"))
540 project_paths = from_union([lambda x: from_list(from_str, x), from_none], obj.get("projectPaths"))
541 return AgentsDiscoverRequest(exclude_host_agents, project_paths)
542
543 def to_dict(self) -> dict:
544 result: dict = {}
545 if self.exclude_host_agents is not None:
546 result["excludeHostAgents"] = from_union([from_bool, from_none], self.exclude_host_agents)
547 if self.project_paths is not None:
548 result["projectPaths"] = from_union([lambda x: from_list(from_str, x), from_none], self.project_paths)
549 return result
550
551# Experimental: this type is part of an experimental API and may change or be removed.
552@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…