Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Fix type hint for _call_preprocess (#8827)

TomuHirataa9ba09d845a3
diff --git a/dspy/adapters/base.py b/dspy/adapters/base.py
index 701f84cce..5e87867f2 100644
--- a/dspy/adapters/base.py
+++ b/dspy/adapters/base.py
@@ -37,7 +37,7 @@ class Adapter:
lm_kwargs: dict[str, Any],
signature: type[Signature],
inputs: dict[str, Any],
- ) -> dict[str, Any]:
+ ) -> type[Signature]:
if self.use_native_function_calling:
tool_call_input_field_name = self._get_tool_call_input_field_name(signature)
tool_call_output_field_name = self._get_tool_call_output_field_name(signature)