export_research_tool
Builds a LaTeX source document for a research export, combining a literature review, conversation summary, and APA/Chicago/MLA citations so you can compile or save the .tex file.
Instructions
Build the LaTeX source for a research export (literature review + conversation summary + citations in APA/Chicago/MLA) and return it.
This tool does NOT render a PDF - it returns the raw LaTeX document source. You, the assistant calling this tool, are responsible for rendering it yourself:
Write the returned LaTeX to a
.texfile (e.g.digilib_export.tex) in the user's project or Downloads folder.If
pdflatexis available, compile it to PDF withpdflatex -interaction=nonstopmode digilib_export.texand give the user the path to the resulting PDF.If
pdflatexis NOT available, just save the.texfile and tell the user where it is and how to compile it (e.g. install TeX, or use an online LaTeX compiler such as Overleaf). Always save the.texfile regardless, so the user keeps the source.
Args: conversation_summary: plain-text summary of the conversation, written by the calling LLM. literature_recommended: list of plain-text lines for the Literature Review section (one bullet per line). liked_articles: citation entries, each a dict with title/authors/year/link keys. citation_formats: subset of ["APA", "Chicago", "MLA"].
Returns: The complete LaTeX document source as a string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| liked_articles | No | ||
| citation_formats | No | ||
| conversation_summary | Yes | ||
| literature_recommended | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |