generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 579
Closed
Labels
area-contextSession or context relatedSession or context relatedenhancementNew feature or requestNew feature or requestpaper cutUX/UI frictionUX/UI friction
Description
Problem Statement
Is there a way to reduce the number of messages before the end of the agent execution (during the loop execution) ?
In my use case (WebBrowser navigation), Agent is executing a lot of operations with tools (screenshots) and the number of messages is growing fast and Agent loop is becoming very slow.
I have tried to call the apply_management method in the AfterInvocationEvent Hook but it does not work
def log_after_model_invocation(self, event: AfterInvocationEvent) -> None:
logger.info(f"----->Request log_after_model_invocation for agent: {len(event.agent.messages)}")
event.agent.conversation_manager.apply_management(event.agent)Proposed Solution
No response
Use Case
In my use case (WebBrowser navigation), Agent is executing a lot of operations with tools (screenshots) and the number of messages is growing fast and Agent loop is becoming slow.
Alternatives Solutions
No response
Additional Context
No response
oleg-pershin-at-telekom-com
Metadata
Metadata
Assignees
Labels
area-contextSession or context relatedSession or context relatedenhancementNew feature or requestNew feature or requestpaper cutUX/UI frictionUX/UI friction