can you tell me about canadian budget
TheThe current language of the user is English. I need to use a tool to help me answer the question about the Canadian budget. Action: query_engine_tool Action Input: {"input": "Canadian budget 2023"}
FunctionCallingAgent
imofrom llama_index.core.agent import FunctionCallingAgent agent = FunctionCallingAgent.from_tools(tools, llm=OpenAI(...))
from llama_index.agent.openai import OpenAIAgent agent = OpenAIAgent.from_tools(tools, llm=llm) resp = agent.stream_chat("hello world") for t in resp.response_gen: print(t, end="", flush=True)