Agent Playground - Agent Respond with Python Charts

I have been trying out prompts for my Agent to use python to generate simple charts using common python packages. But the issue is that the agent can create the image/rendering of the chart/graph. But it saves it into the folder with the agent playground.py file. Instead of actually responding to me in the playground with the image/rendering. How can I give the agent the ability to actually respond with its created/rendered image? You can see a created rendering below

Hi @nathanmcwhorter , thanks for reaching out and supporting Agno. I’ve shared this with the team, we’re working through all requests one by one and will get back to you soon.
If it’s urgent, please let us know. We appreciate your patience!

Hi @nathanmcwhorter , Can you please agent config codebase, to help us replicate this issue?

@monalisha

Here is my agent configuration.

chart_agent = Agent(
name=“Chart Agent”,
model=OpenAIChat(id=“gpt-4o”),
tools=[PythonTools()],
instructions=[“you are a expert at data visaulizations in Python. You will take the users request and process charts/graphs using basic python libraries such as matlab. Return the completed visual to the user as an attachment”],
storage=SqliteStorage(table_name=“chart_agent”, db_file=agent_storage),
add_datetime_to_instructions=True,
reasoning=True,
add_history_to_messages=True,
num_history_responses=5,
markdown=True,
)

Im using the agent playground to interface with the agent. It looks to be generating the output .png but it wont send it back to me as the user (either as an in-line image) or as a attachment to download.

Hi @nathanmcwhorter , Currently this is not possible but this is something our team will be building soon and is in our next set of priorities. Thanks for raising this issue.