Bug Fixes:
- Core:
add()(MemoryandAsyncMemory) no longer reports records the vector store rejected as successfulADDevents. Only records that were actually inserted are written to history, entity-linked, and returned. If none of the extracted memories could be inserted,add()now raisesVectorStoreErrorinstead of returning memories that were never stored (#7066) - Core: Restore the context-manager protocol on
Memory(with Memory() as m:) andAsyncMemory(async with AsyncMemory() as m:), which closes the instance on exit (#7354) - LLMs: The AWS Bedrock Anthropic path now returns the first Converse content block that carries text instead of always reading
content[0]. Claude reasoning models can emit areasoningContentblock before the text block, which previously made the call fail with aKeyError(#6369) - Vector Stores: Turbopuffer filters now apply every operator (
eq,ne,gt,gte,lt,lte,in,nin). Onlygteandltewere read before, so any other operator was silently dropped and the query returned unfiltered results. An unsupported operator now raisesValueError(#6564) - Vector Stores: Turbopuffer
search()scores now respectdistance_metric. Witheuclidean_squared, the unbounded squared distance maps to1 / (1 + distance)instead of1 - distance, which went negative and inverted ranking for any distance above 1 (#6559) - Vector Stores: S3 Vectors
search()scores are now metric-aware. Witheuclidean, the distance maps to1 / (1 + distance)instead ofmax(0, 1 - distance), which collapsed most scores to 0 (#6547)