mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-09 06:53:59 +00:00
consolidate run functions (#126)
consolidating logic for when a chain is able to run with single input text, single output text open to feedback on naming, logic, usefulness
This commit is contained in:
@@ -22,7 +22,7 @@ class FakeChain(Chain, BaseModel):
|
||||
"""Output key of bar."""
|
||||
return ["bar"]
|
||||
|
||||
def _run(self, inputs: Dict[str, str]) -> Dict[str, str]:
|
||||
def _call(self, inputs: Dict[str, str]) -> Dict[str, str]:
|
||||
if self.be_correct:
|
||||
return {"bar": "baz"}
|
||||
else:
|
||||
|
Reference in New Issue
Block a user