Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Mark ReActV2 experimental (#9836)

Isaac Miller30292c2199fe
diff --git a/dspy/predict/react_v2.py b/dspy/predict/react_v2.py
index c5f4dfecd..0e87e446a 100644
--- a/dspy/predict/react_v2.py
+++ b/dspy/predict/react_v2.py
@@ -10,6 +10,7 @@ from dspy.adapters.types.tool import Tool, ToolCallResults, ToolCalls
from dspy.primitives.module import Module
from dspy.primitives.prediction import Prediction
from dspy.signatures.signature import ensure_signature
+from dspy.utils.annotation import experimental
from dspy.utils.exceptions import AdapterParseError, ContextWindowExceededError
logger = logging.getLogger(__name__)
@@ -18,6 +19,7 @@ if TYPE_CHECKING:
from dspy.signatures.signature import Signature
+@experimental
class ReActV2(Module):
def __init__(self, signature: type[Signature], tools: list[Callable | Tool], max_iters: int = 20):
super().__init__()