(no commit message)

This commit is contained in:
2025-10-06 21:57:28 -07:00
parent d0dbad868e
commit c47ea4f3b3

View File

@@ -108,9 +108,13 @@ class PersanaSearcher(PrecompiledAgent):
# You can optionally take in other variables specific to the environment
# It is recommended to track any performance-altering variables (model, temperature, etc.) in the config, not the constructor
def __init__(
self, config: PersanaConfig, api_key: Optional[str] = None, train: bool = False
self,
config: PersanaConfig,
api_key: Optional[str] = None,
train: bool = False,
**kwargs,
):
super().__init__(config)
super().__init__(config, **kwargs)
self.client = PersanaClient(api_key=api_key)
self.search_creator = dspy.Predict(ICPTOSearchSignature)
self.search_creator.set_lm(dspy.LM(config.model))