fix: support python 3.14 in various projects (#33575)

Co-authored-by: cbornet <cbornet@hotmail.com>
Co-authored-by: Mason Daugherty <mason@langchain.dev>
This commit is contained in:
ccurme
2025-10-17 11:06:23 -04:00
committed by GitHub
parent 3b8cb3d4b6
commit 3152d25811
28 changed files with 2287 additions and 1635 deletions

View File

@@ -89,8 +89,8 @@ class ExaSearchResults(BaseTool): # type: ignore[override]
"Input should be an Exa-optimized query. "
"Output is a JSON array of the query results"
)
client: Exa = Field(default=None)
exa_api_key: SecretStr = Field(default=None)
client: Exa = Field(default=None) # type: ignore[assignment]
exa_api_key: SecretStr = Field(default=SecretStr(""))
@model_validator(mode="before")
@classmethod
@@ -170,8 +170,8 @@ class ExaFindSimilarResults(BaseTool): # type: ignore[override]
"Input should be an Exa-optimized query. "
"Output is a JSON array of the query results"
)
client: Exa = Field(default=None)
exa_api_key: SecretStr = Field(default=None)
client: Exa = Field(default=None) # type: ignore[assignment]
exa_api_key: SecretStr = Field(default=SecretStr(""))
exa_base_url: str | None = None
@model_validator(mode="before")