You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Submitting this issue before opening a PR to resolve it.
In vertexai.agent_engines.templates.langchain.py, the type definition for tools in the LangchainAgent class is Optional[Sequence["_ToolLike"]] = None,. However, _ToolLike is defined as _ToolsType, which itself is defined as _ToolsType = Sequence[_ToolType], so we are unnecessarily getting nested sequences. This causes mypy to give an error saying it expects elements (tools) of LangchainAgent(tools=[...]) to be of type Sequence.