Skip to content

Conversation

@keyurdoshi03
Copy link
Collaborator

Description

This is imp for smooth functioning of the chatbot.
In case a tool message returns a very large response, the agent is not able to reply.
For example, if you change the profile video to any other video and then ask chatbot any prompt which triggers the get_dashboard or any other related profile video tool, the Tool Msg has very long URL of video which exceeds the limit of model, thus encountring error that point onwards.
This PR solves that by smarly reducing length to a max limit w/o mch loss of info

Testing

Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested the service locally.

Documentation

Make sure that you have documented corresponding changes in this repository.

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged
  • I have documented any changes if required in the docs.

@github-actions
Copy link

Test Results

93 tests   93 ✅  2s ⏱️
17 suites   0 💤
 7 files     0 ❌

Results for commit 8258f24.

@github-actions
Copy link

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1363 1089 80% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 8258f24 by action🐍

@piyushroshan piyushroshan merged commit 6094546 into develop Oct 26, 2025
10 checks passed
@piyushroshan piyushroshan deleted the agent-hook branch October 26, 2025 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants