Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@harrytran001
Copy link
Contributor

@harrytran001 harrytran001 commented Oct 13, 2025

Summary

In Knowledge class:

  • get_content calls get_knowledge_contents from BaseDb, in this case I am using MySQLDb.
  • get_content is called in _get_filters_from_db which is called in validate_filters
  • When adding search_knowledge_base tool in Team or Agent, validate_filters is called.

However, in MySQLDb, get_knowledge_contents is buggy in MySQLDb.
In the current implementation. If there is no limit provided, the query won't be executed at all.

(If applicable, issue number: #5018)

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Improvement
  • Model update
  • Other:

Checklist

  • Code complies with style guidelines
  • Ran format/validation scripts (./scripts/format.sh and ./scripts/validate.sh)
  • Self-review completed
  • Documentation updated (comments, docstrings)
  • Examples and guides: Relevant cookbook examples have been included or updated (if applicable)
  • Tested in clean environment
  • Tests added/updated (if applicable)

Additional Notes

Add any important context (deployment instructions, screenshots, security considerations, etc.)

@harrytran001 harrytran001 marked this pull request as ready for review October 13, 2025 13:39
@harrytran001 harrytran001 requested a review from a team as a code owner October 13, 2025 13:39
@willemcdejongh willemcdejongh merged commit 51b255f into agno-agi:main Oct 14, 2025
6 checks passed
anuragts pushed a commit that referenced this pull request Oct 14, 2025
…ge Contents MySQLDb (#5019)

## Summary
In Knowledge class:
- `get_content` calls `get_knowledge_contents` from `BaseDb`, in this
case I am using `MySQLDb`.
- `get_content` is called in `_get_filters_from_db` which is called in
`validate_filters`
- When adding `search_knowledge_base` tool in Team or Agent,
`validate_filters` is called.

However, in MySQLDb, get_knowledge_contents is buggy in MySQLDb.
In the current implementation. If there is no limit provided, the query
won't be executed at all.

(If applicable, issue number: #5018)

## Type of change

- [X] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Improvement
- [ ] Model update
- [ ] Other:

---

## Checklist

- [X] Code complies with style guidelines
- [X] Ran format/validation scripts (`./scripts/format.sh` and
`./scripts/validate.sh`)
- [X] Self-review completed
- [ ] Documentation updated (comments, docstrings)
- [ ] Examples and guides: Relevant cookbook examples have been included
or updated (if applicable)
- [X] Tested in clean environment
- [ ] Tests added/updated (if applicable)

---

## Additional Notes

Add any important context (deployment instructions, screenshots,
security considerations, etc.)
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.

2 participants