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

Function worker

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

Source from the content-addressed store, hash-verified

21 dspy.configure(lm=dspy.LM("openai/gpt-4o"), adapter=dspy.JSONAdapter(), callbacks=[lambda x: x])
22
23 def worker():
24 with pytest.raises(RuntimeError, match="Cannot call dspy.configure"):
25 dspy.configure(lm=dspy.LM("openai/gpt-4o-mini"), callbacks=[])
26
27 with ThreadPoolExecutor(max_workers=1) as executor:
28 executor.submit(worker)

Callers

nothing calls this directly

Calls 2

configureMethod · 0.80
contextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…