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

Class _FakeExecutionResult

tests/extensions/sandbox/test_runloop.py:248–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246
247
248class _FakeExecutionResult:
249 def __init__(self, *, stdout: str = "", stderr: str = "", exit_code: int | None = 0) -> None:
250 self._stdout = stdout
251 self._stderr = stderr
252 self.exit_code = exit_code
253
254 async def stdout(self, num_lines: int | None = None) -> str:
255 _ = num_lines
256 return self._stdout
257
258 async def stderr(self, num_lines: int | None = None) -> str:
259 _ = num_lines
260 return self._stderr
261
262
263class _FakeExecution:

Callers 1

resultMethod · 0.85

Calls

no outgoing calls

Tested by 1

resultMethod · 0.68