Skip to content

chore: deprecate function_calling_llm field#5826

Merged
greysonlalonde merged 2 commits into
mainfrom
chore/deprecate-function-calling-llm-field
May 18, 2026
Merged

chore: deprecate function_calling_llm field#5826
greysonlalonde merged 2 commits into
mainfrom
chore/deprecate-function-calling-llm-field

Conversation

@greysonlalonde
Copy link
Copy Markdown
Contributor

@greysonlalonde greysonlalonde commented May 15, 2026

Note

Low Risk
Low risk: this only marks function_calling_llm as deprecated in Pydantic model schemas and does not change runtime execution logic. Main risk is downstream users seeing new deprecation warnings/metadata and needing to migrate before removal.

Overview
Marks the function_calling_llm model field as deprecated (with a removal notice) across core surfaces: Agent, Crew, and the LangGraphAgentAdapter and OpenAIAgentAdapter.

This updates the Pydantic Field(...) metadata to emit deprecation information in generated schemas/serialization, without otherwise changing how LLMs are resolved or used at runtime.

Reviewed by Cursor Bugbot for commit fe1c9b0. Bugbot is set up for automated code reviews on this repo. Configure here.

Summary by CodeRabbit

  • Chores
    • Deprecated the function_calling_llm field across the platform, scheduled for removal in a future release. Plan accordingly if your workflows depend on this field.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 15, 2026

📝 Walkthrough

Walkthrough

This PR adds deprecation metadata to the function_calling_llm field across four core models in the crewAI codebase. The field definition in each model now includes a Pydantic deprecation marker, signaling users that this field will be removed in a future release. No functional changes, logic modifications, or type alterations are made.

Changes

Deprecate function_calling_llm Across Model Definitions

Layer / File(s) Summary
Add deprecation markers to function_calling_llm fields
lib/crewai/src/crewai/agent/core.py, lib/crewai/src/crewai/crew.py, lib/crewai/src/crewai/agents/agent_adapters/langgraph/langgraph_adapter.py, lib/crewai/src/crewai/agents/agent_adapters/openai_agents/openai_adapter.py
Four function_calling_llm field declarations in Agent, Crew, LangGraphAgentAdapter, and OpenAIAgentAdapter are updated with identical deprecation messages via Pydantic Field(deprecated=...) metadata. Field types, defaults, and descriptions remain unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 A field grows old and fades away,
Marked deprecated, here to stay—
Four models wave their last goodbye,
Before this llm field will die.
Hop along, the new path waits! 🌟

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and accurately describes the main change: adding deprecation markers to the function_calling_llm field across multiple files in the codebase.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/deprecate-function-calling-llm-field

Comment @coderabbitai help to get the list of available commands and usage tips.

@greysonlalonde greysonlalonde merged commit 42aa8a7 into main May 18, 2026
55 checks passed
@greysonlalonde greysonlalonde deleted the chore/deprecate-function-calling-llm-field branch May 18, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants