mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-01 07:13:00 +00:00
Move lib/crewai/src/crewai/a2a to lib/crewai-a2a/src/crewai_a2a as a separate workspace member. crewai's `[a2a]` optional extra now pulls in crewai-a2a instead of listing raw deps. All imports updated from crewai.a2a.* to crewai_a2a.*. Handle PydanticUndefinedAnnotation in crewai/__init__.py model_rebuild to break circular import at load time.
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
"""A2A update mechanism configuration types."""
|
|
|
|
from crewai_a2a.updates.base import (
|
|
BaseHandlerKwargs,
|
|
PollingHandlerKwargs,
|
|
PushNotificationHandlerKwargs,
|
|
PushNotificationResultStore,
|
|
StreamingHandlerKwargs,
|
|
UpdateHandler,
|
|
)
|
|
from crewai_a2a.updates.polling.config import PollingConfig
|
|
from crewai_a2a.updates.polling.handler import PollingHandler
|
|
from crewai_a2a.updates.push_notifications.config import PushNotificationConfig
|
|
from crewai_a2a.updates.push_notifications.handler import PushNotificationHandler
|
|
from crewai_a2a.updates.streaming.config import StreamingConfig
|
|
from crewai_a2a.updates.streaming.handler import StreamingHandler
|
|
|
|
|
|
UpdateConfig = PollingConfig | StreamingConfig | PushNotificationConfig
|
|
|
|
__all__ = [
|
|
"BaseHandlerKwargs",
|
|
"PollingConfig",
|
|
"PollingHandler",
|
|
"PollingHandlerKwargs",
|
|
"PushNotificationConfig",
|
|
"PushNotificationHandler",
|
|
"PushNotificationHandlerKwargs",
|
|
"PushNotificationResultStore",
|
|
"StreamingConfig",
|
|
"StreamingHandler",
|
|
"StreamingHandlerKwargs",
|
|
"UpdateConfig",
|
|
"UpdateHandler",
|
|
]
|