The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Added missing attribute value object (#6849)
Piyush Jaine53995836aff
diff --git a/langchain/retrievers/kendra.py b/langchain/retrievers/kendra.pyindex d694a20430..c86b812244 100644--- a/langchain/retrievers/kendra.py+++ b/langchain/retrievers/kendra.py@@ -32,16 +32,17 @@ class TextWithHighLights(BaseModel, extra=Extra.allow):Highlights: Optional[Any]+class AdditionalResultAttributeValue(BaseModel, extra=Extra.allow):+ TextWithHighlightsValue: TextWithHighLights++class AdditionalResultAttribute(BaseModel, extra=Extra.allow):Key: strValueType: Literal["TEXT_WITH_HIGHLIGHTS_VALUE"]- Value: Optional[TextWithHighLights]+ Value: AdditionalResultAttributeValuedef get_value_text(self) -> str:- if not self.Value:- return ""- else:- return self.Value.Text+ return self.Value.TextWithHighlightsValue.Textclass QueryResultItem(BaseModel, extra=Extra.allow):