The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
langchain_community: Add default None values to DocumentAttributeValue class properties (#28785)
Yudai Kotani05a44797ee8b
diff --git a/libs/community/langchain_community/retrievers/kendra.py b/libs/community/langchain_community/retrievers/kendra.pyindex fe36e85dbe..d674c36866 100644--- a/libs/community/langchain_community/retrievers/kendra.py+++ b/libs/community/langchain_community/retrievers/kendra.py@@ -119,13 +119,13 @@ class AdditionalResultAttribute(BaseModel, extra="allow"): # type: ignore[call-class DocumentAttributeValue(BaseModel, extra="allow"): # type: ignore[call-arg]"""Value of a document attribute."""- DateValue: Optional[str]+ DateValue: Optional[str] = None"""The date expressed as an ISO 8601 string."""- LongValue: Optional[int]+ LongValue: Optional[int] = None"""The long value."""- StringListValue: Optional[List[str]]+ StringListValue: Optional[List[str]] = None"""The string list value."""- StringValue: Optional[str]+ StringValue: Optional[str] = None"""The string value."""@property