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:
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:
By applying convert_to_markdown() right before the LLM call, we can ensure:
✅ Tasks / Acceptance Criteria: