Skip to content

Commit 63fc33e

Browse files
SaschaHeyercopybara-github
authored andcommitted
fix: Preserve system_instruction in LangchainAgent clone()
COPYBARA_INTEGRATE_REVIEW=#5047 from SaschaHeyer:fix-missing-system-instruction 28502c3 PiperOrigin-RevId: 736154906
1 parent 37b72c2 commit 63fc33e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vertexai/preview/reasoning_engines/templates/langchain.py

+1
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ def clone(self) -> "LangchainAgent":
567567

568568
return LangchainAgent(
569569
model=self._model_name,
570+
system_instruction=self._system_instruction,
570571
prompt=copy.deepcopy(self._prompt),
571572
tools=copy.deepcopy(self._tools),
572573
output_parser=copy.deepcopy(self._output_parser),

0 commit comments

Comments
 (0)