MCPcopy Create free account
hub / github.com/openai/openai-agents-python / _match

Method _match

tests/extensions/sandbox/test_cloudflare.py:113–117  ·  view source on GitHub ↗
(self, method: str, url: str)

Source from the content-addressed store, hash-verified

111 self._responses[(method.upper(), suffix)] = val
112
113 def _match(self, method: str, url: str) -> _FakeResponse | _FakeSSEResponse:
114 for (m, suffix), resp in self._responses.items():
115 if m == method and suffix in url:
116 return resp
117 return self.default_response
118
119 def _record(self, method: str, url: str, **kwargs: Any) -> _FakeResponse | _FakeSSEResponse:
120 self.calls.append({"method": method, "url": url, **kwargs})

Callers 1

_recordMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected