Skip to content

Make agent memory respect crew_memory_enabled config (ar-i84f)#22

Merged
atc964 merged 1 commit into
mainfrom
fix/agent-memory-config-ar-i84f
Jun 24, 2026
Merged

Make agent memory respect crew_memory_enabled config (ar-i84f)#22
atc964 merged 1 commit into
mainfrom
fix/agent-memory-config-ar-i84f

Conversation

@atc964

@atc964 atc964 commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

All 12 seller agent constructors hardcoded memory=True, ignoring settings.crew_memory_enabled. That hardcode forces crewai to attach a search_memory tool backed by chromadb + OpenAI embeddings, which fails at runtime when CHROMA_OPENAI_API_KEY is absent.

Fix

Replace hardcoded memory=True with memory=settings.crew_memory_enabled in all 12 agent files:

  • L1: inventory_manager.py
  • L2: ctv_inventory_agent, display_inventory_agent, linear_tv_inventory_agent, mobile_app_inventory_agent, native_inventory_agent, video_inventory_agent
  • L3: audience_validator_agent, availability_agent, pricing_agent, proposal_review_agent, upsell_agent

Settings default remains crew_memory_enabled = True, so users with an OpenAI embedder configured see no behavior change.

Mirrors the buyer-side fix at IABTechLab/buyer-agent#104.

Context

Discovered 2026-05-29 during EOD smoke test (ar-r82f.15) Surface A.

bead: ar-i84f

🤖 Generated with Claude Code

All 12 seller agent constructors hardcoded `memory=True`, ignoring
`settings.crew_memory_enabled`. This forces crewai to attach a search_memory
tool requiring OpenAI embeddings via chromadb. When CHROMA_OPENAI_API_KEY
is absent (the default for non-OpenAI deployments), agent tool calls fail
silently downstream.

Fix: replace hardcoded `memory=True` with `memory=settings.crew_memory_enabled`
in all 12 agent files (L1 inventory_manager + 6 L2 inventory agents + 5 L3
specialist agents). Settings default remains True so existing users see no
behavior change.

Mirrors the buyer-side fix (IABTechLab/buyer-agent#104).

Discovered 2026-05-29 during EOD smoke test (ar-r82f.15) Surface A.

bead: ar-i84f

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@atc964 atc964 merged commit 1808986 into main Jun 24, 2026
2 checks passed
@atc964 atc964 deleted the fix/agent-memory-config-ar-i84f branch June 24, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant