Find answers from the community

G
GB7
Offline, last seen 3 days ago
Joined January 14, 2025
Hi, I have a FunctionAgent that has a few tools. One of them is an MCP Server that converts markdown to PDF.
This MCP Server tool returns Image(data=pdf_data, format="pdf").
While generating a report I am getting the error:
""""
venv/lib/python3.12/site-packages/llama_index/core/workflow/workflow.py", line 310, in _task
raise WorkflowRuntimeError(
llama_index.core.workflow.errors.WorkflowRuntimeError: Error in step 'run_agent_step': Timeout on reading data from socket
""""

I assume it's related to the huge content of the pdf_data that I noticed—at least 50k tokens.

What is the proper way to deal with that kind of huge data? Is there something built into the framework that is recommended?
10 comments
G
L