Fix streaming implementation issues

- Add streaming parameters to BaseAgent.execute_task method signature
- Fix mock LLM objects to include supports_stop_words attribute
- Update event emission to use crewai_event_bus.emit instead of direct method calls
- Remove unused variables in test files

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2025-06-04 07:06:43 +00:00
parent b3b2b1e25f
commit 495af081d2
5 changed files with 19 additions and 11 deletions

View File

@@ -254,6 +254,8 @@ class BaseAgent(ABC, BaseModel):
task: Any,
context: Optional[str] = None,
tools: Optional[List[BaseTool]] = None,
stream: bool = False,
stream_callback: Optional[Callable[[str, str, str, str], None]] = None,
) -> str:
pass