chore: merge main into release/v1.0.0

Resolved merge conflicts:
- agent.py: kept main's docker validation, restored get_platform_tools method, fixed KnowledgeRetrievalStartedEvent position
- agent_utils.py: merged both LLM and LiteAgent imports
- test_cache_hitting.yaml: accepted main's test recordings
- Removed 4 deprecated test cassettes from old tests/ directory

Key changes from main:
- Enhanced knowledge event handling with from_agent/from_task parameters
- Updated LLMMessage typing in kickoff methods
- Added guardrail parameter to async kickoff
- Restored runtime validation in guardrail.py
This commit is contained in:
Greyson LaLonde
2025-10-08 16:52:55 -04:00
103 changed files with 4218 additions and 1821 deletions

View File

@@ -2319,10 +2319,10 @@ def test_get_knowledge_search_query():
crew = Crew(agents=[agent], tasks=[task])
crew.kickoff()
mock_get_query.assert_called_once_with(task_prompt)
mock_get_query.assert_called_once_with(task_prompt, task)
with patch.object(agent.llm, "call") as mock_llm_call:
agent._get_knowledge_search_query(task_prompt)
agent._get_knowledge_search_query(task_prompt, task)
mock_llm_call.assert_called_once_with(
[