bedead / bedead/Eibox

Integrate convert_to_markdown() utility in Agents before invoking LLM

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
agents challenging easy enhancement fun medium
Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Now that we have the `convert_to_markdown(data)` utility function available,
we need to integrate it into the Agent pipeline so that all data passed to the LLM is automatically formatted into Markdown.

Currently, agents (especially ChatbotAgent and MailProcessingAgent) send raw data or JSON-like structures to the LLM.
This often leads to:

- Messy or inconsistent prompt structures
- Reduced model comprehension and formatting errors in output
- Increased token usage due to redundant or unstructured input

By applying convert_to_markdown() right before the LLM call, we can ensure:

- Cleaner and more structured prompts
- Consistent formatting across all agent interactions
- Improved model interpretability and cost efficiency

✅ Tasks / Acceptance Criteria:

- [ ] - Import and use convert_to_markdown() in all agent classes that prepare input for the LLM (e.g., chatbot_agent.py, email_agent.py, etc.)
- [ ] - Apply the conversion step right before invoking the LLM’s generate() / run() / invoke() methods
- [ ] - Ensure no double-conversion (skip if already Markdown)
- [ ] - Add debug logs to confirm data is successfully converted before sending
- [ ] - Test LLM outputs before and after integration to verify improvement in formatting and response quality
- [ ] - Update related documentation or agent comments

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate ChatbotAgent, MailProcessingAgent, and the other agent classes, then inspect where their generate(), run(), or invoke() calls prepare LLM input. Read the existing convert_to_markdown() utility and determine how already-Markdown data is identified. Done means all relevant inputs are converted once, debug logging is present, and tests or documented checks cover the resulting LLM interactions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.