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.
72 lines
2.2 KiB
Python
72 lines
2.2 KiB
Python
"""Deprecated: Authentication schemes for A2A protocol agents.
|
|
|
|
This module is deprecated. Import from crewai_a2a.auth instead:
|
|
- crewai_a2a.auth.ClientAuthScheme (replaces AuthScheme)
|
|
- crewai_a2a.auth.BearerTokenAuth
|
|
- crewai_a2a.auth.HTTPBasicAuth
|
|
- crewai_a2a.auth.HTTPDigestAuth
|
|
- crewai_a2a.auth.APIKeyAuth
|
|
- crewai_a2a.auth.OAuth2ClientCredentials
|
|
- crewai_a2a.auth.OAuth2AuthorizationCode
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing_extensions import deprecated
|
|
|
|
from crewai_a2a.auth.client_schemes import (
|
|
APIKeyAuth as _APIKeyAuth,
|
|
BearerTokenAuth as _BearerTokenAuth,
|
|
ClientAuthScheme as _ClientAuthScheme,
|
|
HTTPBasicAuth as _HTTPBasicAuth,
|
|
HTTPDigestAuth as _HTTPDigestAuth,
|
|
OAuth2AuthorizationCode as _OAuth2AuthorizationCode,
|
|
OAuth2ClientCredentials as _OAuth2ClientCredentials,
|
|
)
|
|
|
|
|
|
@deprecated("Use ClientAuthScheme from crewai_a2a.auth instead", category=FutureWarning)
|
|
class AuthScheme(_ClientAuthScheme):
|
|
"""Deprecated: Use ClientAuthScheme from crewai_a2a.auth instead."""
|
|
|
|
|
|
@deprecated("Import from crewai_a2a.auth instead", category=FutureWarning)
|
|
class BearerTokenAuth(_BearerTokenAuth):
|
|
"""Deprecated: Import from crewai_a2a.auth instead."""
|
|
|
|
|
|
@deprecated("Import from crewai_a2a.auth instead", category=FutureWarning)
|
|
class HTTPBasicAuth(_HTTPBasicAuth):
|
|
"""Deprecated: Import from crewai_a2a.auth instead."""
|
|
|
|
|
|
@deprecated("Import from crewai_a2a.auth instead", category=FutureWarning)
|
|
class HTTPDigestAuth(_HTTPDigestAuth):
|
|
"""Deprecated: Import from crewai_a2a.auth instead."""
|
|
|
|
|
|
@deprecated("Import from crewai_a2a.auth instead", category=FutureWarning)
|
|
class APIKeyAuth(_APIKeyAuth):
|
|
"""Deprecated: Import from crewai_a2a.auth instead."""
|
|
|
|
|
|
@deprecated("Import from crewai_a2a.auth instead", category=FutureWarning)
|
|
class OAuth2ClientCredentials(_OAuth2ClientCredentials):
|
|
"""Deprecated: Import from crewai_a2a.auth instead."""
|
|
|
|
|
|
@deprecated("Import from crewai_a2a.auth instead", category=FutureWarning)
|
|
class OAuth2AuthorizationCode(_OAuth2AuthorizationCode):
|
|
"""Deprecated: Import from crewai_a2a.auth instead."""
|
|
|
|
|
|
__all__ = [
|
|
"APIKeyAuth",
|
|
"AuthScheme",
|
|
"BearerTokenAuth",
|
|
"HTTPBasicAuth",
|
|
"HTTPDigestAuth",
|
|
"OAuth2AuthorizationCode",
|
|
"OAuth2ClientCredentials",
|
|
]
|