Skip to content

Commit 1a3ab94

Browse files
yeesiancopybara-github
authored andcommitted
chore: Set the agent_framework in ModuleAgent
PiperOrigin-RevId: 784329779
1 parent 8e6df42 commit 1a3ab94

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

vertexai/agent_engines/_agent_engines.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def __init__(
221221
to the system path in the sequence being specified here, and
222222
only be appended if it is not already in the system path.
223223
"""
224+
self.agent_framework = None
224225
self._tmpl_attrs = {
225226
"module_name": module_name,
226227
"agent_name": agent_name,
@@ -271,6 +272,7 @@ def set_up(self) -> None:
271272
f"Agent {agent_name} not found in module "
272273
f"{self._tmpl_attrs.get('module_name')}"
273274
) from e
275+
self.agent_framework = _get_agent_framework(agent)
274276
self._tmpl_attrs["agent"] = agent
275277
if hasattr(agent, "set_up"):
276278
agent.set_up()

0 commit comments

Comments
 (0)