Skip to content

chore: refactor crew to provider#4367

Merged
greysonlalonde merged 12 commits intomainfrom
gl/chore/refactor-crew-to-provider
Feb 4, 2026
Merged

chore: refactor crew to provider#4367
greysonlalonde merged 12 commits intomainfrom
gl/chore/refactor-crew-to-provider

Conversation

@greysonlalonde
Copy link
Contributor

No description provided.

- add humaninputprovider protocol with setup_messages and handle_feedback
- move sync hitl logic from executor to synchuman inputprovider
- add _passthrough_exceptions extension point in agent/core.py
- create crewai.core.providers module for extensible components
- remove _ask_human_input from base_agent_executor_mixin
@greysonlalonde greysonlalonde changed the title Gl/chore/refactor crew to provider chore: refactor crew to provider Feb 4, 2026
Copy link
Collaborator

@lorenzejay lorenzejay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Enable dynamic extension exports and small behavior fixes across events and flow modules:

- events/__init__.py: Added _extension_exports and extended __getattr__ to lazily resolve registered extension values or import paths.
- events/event_bus.py: Implemented off() to unregister sync/async handlers, clean handler dependencies, and invalidate execution plan cache.
- events/listeners/tracing/utils.py: Added Callable import and _first_time_trace_hook to allow overriding first-time trace auto-collection behavior.
- events/types/tool_usage_events.py: Changed ToolUsageEvent.run_attempts default from None to 0 to avoid nullable handling.
- events/utils/console_formatter.py: Respect CREWAI_DISABLE_VERSION_CHECK env var to skip version checks in CI-like flows.
- flow/async_feedback/__init__.py: Added typing.Any import, _extension_exports and __getattr__ to support extensions via attribute lookup.

These changes add extension points and safer defaults, and provide a way to unregister event handlers.
@greysonlalonde greysonlalonde merged commit d86d43d into main Feb 4, 2026
43 checks passed
@greysonlalonde greysonlalonde deleted the gl/chore/refactor-crew-to-provider branch February 4, 2026 21:05
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.

2 participants