🔥 refactor(types.py): temporarily remove the code parameter from the params dictionary in ChainVertex's build method
This commit is contained in:
parent
b26b7fc6d8
commit
d2ee902871
1 changed files with 4 additions and 0 deletions
|
|
@ -206,6 +206,10 @@ class ChainVertex(Vertex):
|
||||||
) -> Any:
|
) -> Any:
|
||||||
if not self._built or force:
|
if not self._built or force:
|
||||||
# Check if the chain requires a PromptVertex
|
# Check if the chain requires a PromptVertex
|
||||||
|
|
||||||
|
# Temporarily remove the code from the params
|
||||||
|
self.params.pop("code", None)
|
||||||
|
|
||||||
for key, value in self.params.items():
|
for key, value in self.params.items():
|
||||||
if isinstance(value, PromptVertex):
|
if isinstance(value, PromptVertex):
|
||||||
# Build the PromptVertex, passing the tools if available
|
# Build the PromptVertex, passing the tools if available
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue