in Runtime_env/app/orchestration/agent.py [0:0]
def create_agent_executor(self):
"""
Creates a LlamaIndex React Agent executor.
"""
# setup the index/query llm for Vertex Search
Settings.llm = LangChainLLM(self.model_obj)
llamaindex_agent = ReActAgent.from_tools(
prompt=self.prompt,
llm = LangChainLLM(self.model_obj),
tools=self.tools,
verbose=self.verbose
)
return llamaindex_agent