mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-08 03:58:23 +00:00
Some checks failed
Build uv cache / build-cache (3.11) (push) Has been cancelled
Build uv cache / build-cache (3.12) (push) Has been cancelled
Build uv cache / build-cache (3.13) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Vulnerability Scan / pip-audit (push) Has been cancelled
Build uv cache / build-cache (3.10) (push) Has been cancelled
* fix: exclude embedding vector from MemoryRecord serialization MemoryRecord.embedding (1536 floats for OpenAI embeddings) was included in model_dump()/JSON serialization and repr. When recall results flow to agents or get logged, these vectors burn tokens for zero value — agents never need the raw embedding. Added exclude=True and repr=False to the embedding field. The storage layer accesses record.embedding directly (not via model_dump), so persistence is unaffected. * test: validate embedding excluded from serialization Two tests: 1. MemoryRecord — model_dump, model_dump_json, and repr all exclude embedding. Direct attribute access still works for storage layer. 2. MemoryMatch — nested record serialization also excludes embedding.