MCPcopy
hub / github.com/stanfordnlp/dspy / foo3

Function foo3

tests/utils/test_settings.py:177–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175 await asyncio.sleep(0.1)
176
177 async def foo3():
178 # `dspy.context` is allowed in different async tasks from the initial one.
179 with dspy.context(lm=dspy.LM("openai/gpt-4o")):
180 await asyncio.sleep(0.1)
181
182 async def foo4():
183 # foo4 is directly invoked by the entry task, so it has the same async task as the entry task.

Callers 1

Calls 1

contextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…