mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-16 23:13:31 +00:00
Harrison/string inplace (#10153)
Co-authored-by: Wrick Talukdar <wrick.talukdar@gmail.com> Co-authored-by: Anjan Biswas <anjanavb@amazon.com> Co-authored-by: Jha <nikjha@amazon.com> Co-authored-by: Lucky-Lance <77819606+Lucky-Lance@users.noreply.github.com> Co-authored-by: 陆徐东 <luxudong@MacBook-Pro.local>
This commit is contained in:
@@ -111,7 +111,9 @@ class TaskExecutor:
|
||||
dep_task = self.id_task_map[dep_id]
|
||||
for k, v in task.args.items():
|
||||
if f"<resource-{dep_id}>" in v:
|
||||
task.args[k].replace(f"<resource-{dep_id}>", dep_task.result)
|
||||
task.args[k] = task.args[k].replace(
|
||||
f"<resource-{dep_id}>", dep_task.result
|
||||
)
|
||||
|
||||
def run(self) -> str:
|
||||
for task in self.tasks:
|
||||
|
Reference in New Issue
Block a user