Skip to content

🧰 New Function: Download conversation with your agent as PDF!#217

Merged
serena2z merged 18 commits intosnap-stanford:mainfrom
igor-sadalski:download_pdf_of_research
Sep 27, 2025
Merged

🧰 New Function: Download conversation with your agent as PDF!#217
serena2z merged 18 commits intosnap-stanford:mainfrom
igor-sadalski:download_pdf_of_research

Conversation

@igor-sadalski
Copy link
Contributor

@igor-sadalski igor-sadalski commented Sep 23, 2025

As per @serena2z #206 issue

Its a heavy PR so still bugs are present, help me spot them and tag me! Ill try to fixed them as they come ;). Feel free to fork and help be debug/add better styling etc.

Supported Features

PDF available via simple flag

agent = A1(
    path="your/dataset/path/here",
    llm="your-llm-model",
    source="your-llm-source",
)
prompt = f"prompt"
log = agent.go(prompt)
agent.save_conversation_history("your_output_filename", save_pdf=True)

Automatically Extract human prompt

image

Show plans and steps

image

Notify user about potential parsing errors

image

Show code execution and detailed tool use

image

Show update plan as the rollout continues

image

Show Observations

image

Automatically embed images after code that generates them

image

Show concise summary

image

Testing

example

path = "/home/jupyter/test_genomics_data.h5ad"

log = agent.go(
    f"Read in {path} and create a UMAP plot colored by cell_types_names column, then import the tool to create embeddings of the data using UCE plot the embeddigns color by the cell_types_names column show this, then create a scatter plot of sin and cosine functions plot them as well as print them their vales of the sines and exit."
)

example PDF output I got:
test_pdf.pdf

@kexinhuang12345
Copy link
Collaborator

oh wow - this is amazing! thank you - we will test it out and merge!

@amehrjou
Copy link
Contributor

Nice work! Just a note, there is an open PR (#177) on reasoning trace tracking, happy to help resolve any conflicts if both get merged.

@serena2z serena2z merged commit ac9e114 into snap-stanford:main Sep 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants