Skip to content

refactor: update event type definitions to use Literal for type safety#4291

Open
lorenzejay wants to merge 3 commits intomainfrom
lorenze/imp-pydantic
Open

refactor: update event type definitions to use Literal for type safety#4291
lorenzejay wants to merge 3 commits intomainfrom
lorenze/imp-pydantic

Conversation

@lorenzejay
Copy link
Copy Markdown
Collaborator

@lorenzejay lorenzejay commented Jan 27, 2026

  • Changed event type definitions across multiple event classes to use Literal for improved type safety and clarity.
  • Updated the definition in to utilize Annotated for better schema representation.
  • Ensured consistency in type definitions for various events, enhancing the robustness of event handling in the CrewAI framework.

following - https://docs.pydantic.dev/latest/concepts/performance/

- Changed event type definitions across multiple event classes to use Literal for improved type safety and clarity.
- Updated the  definition in  to utilize Annotated for better schema representation.
- Ensured consistency in type definitions for various events, enhancing the robustness of event handling in the CrewAI framework.
@github-actions
Copy link
Copy Markdown
Contributor

This PR is stale because it has been open for 45 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants