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

Function get_agent

src/webwright/agents/__init__.py:20–23  ·  view source on GitHub ↗
(model: Model, env: Environment, config: dict, *, default_type: str = "default")

Source from the content-addressed store, hash-verified

18
19
20def get_agent(model: Model, env: Environment, config: dict, *, default_type: str = "default") -> Agent:
21 copied = copy.deepcopy(config)
22 agent_class = get_agent_class(copied.pop("agent_class", default_type))
23 return agent_class(model, env, **copied)

Callers 1

run_oneFunction · 0.90

Calls 1

get_agent_classFunction · 0.85

Tested by

no test coverage detected