xintongsong commented on code in PR #126:
URL: https://github.com/apache/flink-agents/pull/126#discussion_r2318012105
##########
python/flink_agents/runtime/local_execution_environment.py:
##########
@@ -54,6 +54,10 @@ def apply(self, agent: Agent) -> AgentBuilder:
if self.__runner is not None:
err_msg = "LocalAgentBuilder doesn't support apply multiple
agents."
raise RuntimeError(err_msg)
+ # inspect resources from environment to agent instance.
+ registered_resources = self.__env.resources
+ for type, name_to_resource in registered_resources.items():
+ agent.resources[type] = name_to_resource | agent.resources[type]
Review Comment:
Can we add more resources to the AgentPlan after compiling it from the
Agent? Not saying we should do it in this PR. Just trying to understand.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]