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

Function worker

tests/extensions/memory/test_sqlalchemy_session.py:255–256  ·  view source on GitHub ↗
(content: str)

Source from the content-addressed store, hash-verified

253 submitted = [f"msg-{i}" for i in range(25)]
254
255 async def worker(content: str) -> None:
256 await session.add_items([{"role": "user", "content": content}])
257
258 results = await asyncio.gather(
259 *(worker(content) for content in submitted),

Calls 4

appendMethod · 0.80
runFunction · 0.70
add_itemsMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected