solid-orange
solid-orange2mo ago

Anyway to stop the gmail api from including the payload?

I try to get the last 5 emails and because it includes the payload data, it returns with over 160000 context length.
3 Replies
fascinating-indigo
fascinating-indigo2mo ago
Hey @Lewis Thank you for bringing this to our attention! We're aware of the issue, and the good news is that we’re releasing a preprocessing filter very soon to help with this issue. Let me know if you need any other help!
Soham
Soham2mo ago
Ideally, it should be available on Monday and you can then preprocess any action programmatically to remove extra data points, so LLM consumption is minimal.
Soham
Soham2mo ago
Hey @Lewis , So we have released preprocessing and postprocessing for actions. What it allows you to do is set a function to process inputs going into an action, and similarly process output produced by an action.
In the problem you were facing, now you can easily add a PostProcess Function which will remove the redundant data out of the way and LLM will only get what is needed. Check it here: https://docs.composio.dev/introduction/foundations/components/actions/processing Let me know if this is helpful. Looking for your feedback.
Composio Docs
🛠️ Enhancing Action Inputs & Outputs - Composio
Composio enables your agents to connect with Various Tools and work with them