fix: add type annotations to structured output converter

This commit is contained in:
Greyson LaLonde
2025-09-04 22:53:32 -04:00
parent b44776c367
commit 25204c6cb8
2 changed files with 5 additions and 5 deletions

View File

@@ -22,10 +22,10 @@ from crewai.utilities import Logger
from crewai.utilities.converter import Converter
try:
from langgraph.checkpoint.memory import (
MemorySaver, # type: ignore[import-not-found]
from langgraph.checkpoint.memory import ( # type: ignore
MemorySaver,
)
from langgraph.prebuilt import create_react_agent # type: ignore[import-not-found]
from langgraph.prebuilt import create_react_agent # type: ignore
LANGGRAPH_AVAILABLE = True
except ImportError:

View File

@@ -12,8 +12,8 @@ class LangGraphConverterAdapter(BaseConverterAdapter):
"""Initialize the converter adapter with a reference to the agent adapter"""
self.agent_adapter = agent_adapter
self._output_format: str | None = None
self._schema = None
self._system_prompt_appendix = None
self._schema: str | None = None
self._system_prompt_appendix: str | None = None
def configure_structured_output(self, task: Any) -> None:
"""Configure the structured output for LangGraph."""