mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
fix: Fix tests (#873)
* fix: call asserts * fix: test_increment_tool_errors * fix: test_increment_delegations_for_sequential_process * fix: test_increment_delegations_for_hierarchical_process * fix: test_code_execution_flag_adds_code_tool_upon_kickoff * fix: test_tool_usage_information_is_appended_to_agent * fix: try to fix test_crew_full_output * fix: try to fix test_crew_full_output * fix: test remove vcr to test crew_test test * fix: comment test to see if ci passes * fix: comment test to see if ci passes * fix: test changing prompt tokens to get error on CI * fix: test changing prompt tokens to get error on CI * fix: test changing prompt tokens to get error on CI * fix: test changing prompt tokens to get error on CI * fix: test new approach * fix: comment funciont not working in CI * fix: github python version * fix: remove need of vcr * fix: fix and add comments for all type checking errors
This commit is contained in:
committed by
GitHub
parent
2fb56f1f9f
commit
bb64c80964
@@ -15,19 +15,18 @@ from langchain.agents.agent import ExceptionTool
|
||||
from langchain.callbacks.manager import CallbackManagerForChainRun
|
||||
from langchain_core.agents import AgentAction, AgentFinish, AgentStep
|
||||
from langchain_core.exceptions import OutputParserException
|
||||
|
||||
from langchain_core.tools import BaseTool
|
||||
from langchain_core.utils.input import get_color_mapping
|
||||
from pydantic import InstanceOf
|
||||
|
||||
from crewai.agents.agent_builder.base_agent_executor_mixin import (
|
||||
CrewAgentExecutorMixin,
|
||||
)
|
||||
|
||||
from crewai.agents.tools_handler import ToolsHandler
|
||||
from crewai.tools.tool_usage import ToolUsage, ToolUsageErrorException
|
||||
from crewai.utilities import I18N
|
||||
from crewai.utilities.constants import TRAINING_DATA_FILE
|
||||
from crewai.utilities.training_handler import CrewTrainingHandler
|
||||
from crewai.utilities import I18N
|
||||
|
||||
|
||||
class CrewAgentExecutor(AgentExecutor, CrewAgentExecutorMixin):
|
||||
@@ -46,7 +45,7 @@ class CrewAgentExecutor(AgentExecutor, CrewAgentExecutorMixin):
|
||||
tools_handler: Optional[InstanceOf[ToolsHandler]] = None
|
||||
max_iterations: Optional[int] = 15
|
||||
have_forced_answer: bool = False
|
||||
force_answer_max_iterations: Optional[int] = None
|
||||
force_answer_max_iterations: Optional[int] = None # type: ignore # Incompatible types in assignment (expression has type "int | None", base class "CrewAgentExecutorMixin" defined the type as "int")
|
||||
step_callback: Optional[Any] = None
|
||||
system_template: Optional[str] = None
|
||||
prompt_template: Optional[str] = None
|
||||
|
||||
Reference in New Issue
Block a user