Commit Graph

4 Commits

Author SHA1 Message Date
Devin AI
142ae7ed59 style: Fix import sorting in test_knowledge_utils.py
- Sort and format imports according to ruff linter rules
- Fix I001 linting errors

Co-Authored-By: Joe Moura <joao@crewai.com>
2025-03-04 04:29:25 +00:00
Devin AI
daa40ed630 test: Update knowledge tests to match new format
- Update test assertions to match new knowledge context format
- Replace API-dependent test with mock-based approach
- Ensure tests can run without external API access

Part of #2269

Co-Authored-By: Joe Moura <joao@crewai.com>
2025-03-04 04:22:52 +00:00
Devin AI
be4b8cfac2 test: Add knowledge effectiveness test
- Add test to verify knowledge is effectively used in agent execution
- Test checks that knowledge from agent is correctly used in response
- Verifies fix for issue #2269

Co-Authored-By: Joe Moura <joao@crewai.com>
2025-03-04 04:17:46 +00:00
Devin AI
978d3a19c6 fix: Improve knowledge context formatting for better LLM effectiveness
- Make knowledge context more explicit and instructive for LLM
- Add clear instructions to use provided context
- Add comprehensive test coverage for knowledge utils

Fixes #2269

Co-Authored-By: Joe Moura <joao@crewai.com>
2025-03-04 04:16:26 +00:00