MCPcopy
hub / github.com/openai/openai-agents-python / extract_call_id

Function extract_call_id

tests/test_hitl_session_scenario.py:456–459  ·  view source on GitHub ↗
(item: Any)

Source from the content-addressed store, hash-verified

454
455
456def extract_call_id(item: Any) -> str | None:
457 if isinstance(item, dict):
458 return item.get("call_id") or item.get("id")
459 return getattr(item, "call_id", None) or getattr(item, "id", None)
460
461
462def extract_output_text(item: dict[str, Any] | None) -> str:

Callers 2

assert_step_outputFunction · 0.70
assert_step_itemsFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected