MCPcopy Create free account
hub / github.com/microsoft/Webwright / get_agent_class

Function get_agent_class

src/webwright/agents/__init__.py:13–17  ·  view source on GitHub ↗
(spec: str)

Source from the content-addressed store, hash-verified

11
12
13def get_agent_class(spec: str) -> type[Agent]:
14 full_path = _AGENT_MAPPING.get(spec, spec)
15 module_name, class_name = full_path.rsplit(".", 1)
16 module = importlib.import_module(module_name)
17 return getattr(module, class_name)
18
19
20def get_agent(model: Model, env: Environment, config: dict, *, default_type: str = "default") -> Agent:

Callers 1

get_agentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected