diff --git a/lib/crewai/src/crewai/a2a/errors.py b/lib/crewai/src/crewai/a2a/errors.py index b55200708..56d82e110 100644 --- a/lib/crewai/src/crewai/a2a/errors.py +++ b/lib/crewai/src/crewai/a2a/errors.py @@ -98,7 +98,6 @@ class A2AErrorCode(IntEnum): """The specified artifact was not found.""" -# Error code to default message mapping ERROR_MESSAGES: dict[int, str] = { A2AErrorCode.JSON_PARSE_ERROR: "Parse error", A2AErrorCode.INVALID_REQUEST: "Invalid Request", diff --git a/lib/crewai/src/crewai/a2a/extensions/base.py b/lib/crewai/src/crewai/a2a/extensions/base.py index b94e9543e..d9a280506 100644 --- a/lib/crewai/src/crewai/a2a/extensions/base.py +++ b/lib/crewai/src/crewai/a2a/extensions/base.py @@ -63,25 +63,21 @@ class A2AExtension(Protocol): Example: class MyExtension: def inject_tools(self, agent: Agent) -> None: - # Add custom tools to the agent pass def extract_state_from_history( self, conversation_history: Sequence[Message] ) -> ConversationState | None: - # Extract state from conversation return None def augment_prompt( self, base_prompt: str, conversation_state: ConversationState | None ) -> str: - # Add custom instructions return base_prompt def process_response( self, agent_response: Any, conversation_state: ConversationState | None ) -> Any: - # Modify response if needed return agent_response """ diff --git a/lib/crewai/src/crewai/a2a/utils/response_model.py b/lib/crewai/src/crewai/a2a/utils/response_model.py index 4e65ef2b7..1359e2f10 100644 --- a/lib/crewai/src/crewai/a2a/utils/response_model.py +++ b/lib/crewai/src/crewai/a2a/utils/response_model.py @@ -77,7 +77,6 @@ def extract_a2a_agent_ids_from_config( else: configs = a2a_config - # Filter to only client configs (those with endpoint) client_configs: list[A2AClientConfigTypes] = [ config for config in configs if isinstance(config, (A2AConfig, A2AClientConfig)) ]