Scientific Writer Agent creates LaTeX-formatted academic papers using the specialized CAJAL local model for research publications.Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
Quick Start
How It Works
| Method | Purpose | Output |
|---|---|---|
write_paper() | Full paper generation | Complete ScientificPaper |
write_section() | Single section creation | Individual PaperSection |
review_and_cite() | Literature review with citations | Formatted citation text |
Choosing the Right Method
Common Patterns
Single Section Generation
Adding Citations to Existing Content
Multi-Agent Workflow
Configuration Options
ScientificWriterAgent Constructor
| Parameter | Type | Default | Description |
|---|---|---|---|
name | Optional[str] | "Scientific Writer" | Agent display name |
model | Optional[str] | "Agnuxo/CAJAL-4B-P2PCLAW" | Model identifier (CAJAL default) |
instructions | Optional[str] | Built-in scientific instructions | Custom behavior instructions |
role | Optional[str] | "Scientific Paper Writer" | Agent role description |
goal | Optional[str] | "Generate high-quality scientific papers..." | Agent goal definition |
backstory | Optional[str] | Built-in academic backstory | Agent background story |
Method Parameters
write_paper(topic, sections=None, style="academic", citation_style="APA")
| Parameter | Type | Default | Description |
|---|---|---|---|
topic | str | Required | Research topic for the paper |
sections | Optional[List[str]] | ["Introduction", "Literature Review", "Methodology", "Results", "Discussion", "Conclusion"] | Paper section structure |
style | str | "academic" | Writing style: "academic", "review", "research" |
citation_style | str | "APA" | Citation format: "APA", "IEEE", "Nature" |
write_section(section_title, content_request, context=None)
| Parameter | Type | Default | Description |
|---|---|---|---|
section_title | str | Required | Title of the section |
content_request | str | Required | Content requirements |
context | Optional[str] | None | Additional context information |
review_and_cite(research_query, existing_content=None)
| Parameter | Type | Default | Description |
|---|---|---|---|
research_query | str | Required | Research query for citations |
existing_content | Optional[str] | None | Existing text to add citations to |
Return Types
PaperSection (dataclass)
| Field | Type | Default | Description |
|---|---|---|---|
title | str | Required | Section title |
content | str | Required | Section content |
latex_content | str | "" | LaTeX-formatted content |
ScientificPaper (dataclass)
| Field | Type | Default | Description |
|---|---|---|---|
title | str | Required | Paper title |
abstract | str | Required | Paper abstract |
sections | List[PaperSection] | [] | Paper sections |
references | List[str] | [] | Bibliography entries |
latex_content | str | "" | Full LaTeX document |
metadata | Dict[str, Any] | {} | Metadata (model, generated_by, is_cajal) |
User Interaction Flow
A typical researcher workflow:- Define Research Topic: Specify the subject area and requirements
- Configure Agent: Choose model (CAJAL for local) and citation style
- Generate Paper: Call
write_paper()with topic and preferences - Review Sections: Inspect individual sections in
paper.sections - Export LaTeX: Save
paper.latex_contentto a.texfile - Compile Document: Process with LaTeX compiler for final PDF
Best Practices
When to Use CAJAL vs General LLMs
When to Use CAJAL vs General LLMs
CAJAL Model Benefits:
- Local processing (no API calls)
- Offline capability
- Scientific specialization
- Consistent academic formatting
- Broader knowledge base
- Faster processing
- No local storage requirements
- Latest research awareness
Choosing Section Lists for Different Paper Types
Choosing Section Lists for Different Paper Types
Research Papers:Review Papers:Technical Reports:
Citation Style Selection
Citation Style Selection
- APA: Psychology, education, social sciences
- IEEE: Engineering, computer science, technology
- Nature: Natural sciences, physics, chemistry, biology
- MLA: Literature, humanities (when available)
Multi-Agent Scientific Workflows
Multi-Agent Scientific Workflows
Combine Scientific Writer with complementary agents:
- Literature Review Agent → Research existing work
- Data Analysis Agent → Process experimental data
- Scientific Writer Agent → Generate formatted paper
- Review Agent → Quality check and feedback
Related
Code Agent
Generate and analyze code for research implementations
Math Agent
Solve mathematical problems and create equations

