Skip to content

Commit b096490

Browse files
alexrohvclaude
andcommitted
fix(community): add mypy assert for data_store_id in VertexAIMultiTurnSearchRetriever
Add missing None guard before conversation_path() call to satisfy mypy type narrowing for the Optional[str] data_store_id field. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c009329 commit b096490

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

libs/community/langchain_google_community/vertex_ai_search.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ def _get_relevant_documents(
774774
TextInput,
775775
)
776776

777+
assert self.data_store_id is not None # noqa: S101
777778
request = ConverseConversationRequest(
778779
name=self._client.conversation_path(
779780
self.project_id,

0 commit comments

Comments
 (0)