Ideally, storing the collation of these tools is what I was wondering about which is found here
https://docs.llamaindex.ai/en/stable/examples/agent/multi_document_agents-v1/#build-retriever-enabled-openai-agentdefine tool for each document agent
all_tools = []
for file_base, agent in agents_dict.items():
summary = extra_info_dict[file_base]["summary"]
doc_tool = QueryEngineTool(
query
engine=agent, metadata=ToolMetadata( name=f"tool{file_base}",
description=summary,
),
)
all_tools.append(doc_tool)
all_tools is the array of Tools I want compiled as much as possible before a prompt is received. Given I have the vector and summary tools pickled in storage how can I “pickle” these QueryEngineTool’s. Is this possible? If not how can I get anywhere close to achieving this?
Agents are fantastic but the tutorials I have found don’t show ability to store these QueryEngineTools.