crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

docs: fix broken import in AGENTS.md (message_content_text)

Open Velmet44 opened this issue 1 month ago • 3 comments

### Description

AGENTS.md (repo root) documents collapsing multimodal message content with a helper:

from crewai.utilities.agent_utils import message_content_text

text = message_content_text(msg)  # "" for None; joined text for a parts list

However, message_content_text is not defined in crewai.utilities.agent_utils. It lives in crewai.utilities.message_utils (signature: message_content_text(msg: LLMMessage) -> str). Anyone following AGENTS.md gets an ImportError.

Affected file

  • AGENTS.md (line 25)

Proposed change

- from crewai.utilities.agent_utils import message_content_text
+ from crewai.utilities.message_utils import message_content_text

No code or test changes.

Additional context

  • Prepared with AI assistance.

Velmet44 avatar Oct 24 '26 09:10 Velmet44

I'll take this — opening a PR with the fix shortly.

Velmet44 avatar Oct 24 '26 09:10 Velmet44

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Nov 23 '26 12:11 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Nov 29 '26 12:11 github-actions[bot]