Skip to content

Commit 102b6ae

Browse files
feat: add a2a liteagent, auth, transport negotiation, and file support
* feat: add server-side auth schemes and protocol extensions - add server auth scheme base class and implementations (api key, bearer token, basic/digest auth, mtls) - add server-side extension system for a2a protocol extensions - add extensions middleware for x-a2a-extensions header management - add extension validation and registry utilities - enhance auth utilities with server-side support - add async intercept method to match client call interceptor protocol - fix type_checking import to resolve mypy errors with a2aconfig * feat: add transport negotiation and content type handling - add transport negotiation logic with fallback support - add content type parser and encoder utilities - add transport configuration models (client and server) - add transport types and enums - enhance config with transport settings - add negotiation events for transport and content type * feat: add a2a delegation support to LiteAgent * feat: add file input support to a2a delegation and tasks Introduces handling of file inputs in A2A delegation flows by converting file dictionaries to protocol-compatible parts and propagating them through delegation and task execution functions. Updates include utility functions for file conversion, changes to message construction, and passing input_files through relevant APIs. * feat: liteagent a2a delegation support to kickoff methods
1 parent 19ce560 commit 102b6ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+12136
-1043
lines changed
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,36 @@
11
"""A2A authentication schemas."""
22

3-
from crewai.a2a.auth.schemas import (
3+
from crewai.a2a.auth.client_schemes import (
44
APIKeyAuth,
5+
AuthScheme,
56
BearerTokenAuth,
7+
ClientAuthScheme,
68
HTTPBasicAuth,
79
HTTPDigestAuth,
810
OAuth2AuthorizationCode,
911
OAuth2ClientCredentials,
12+
TLSConfig,
13+
)
14+
from crewai.a2a.auth.server_schemes import (
15+
AuthenticatedUser,
16+
OIDCAuth,
17+
ServerAuthScheme,
18+
SimpleTokenAuth,
1019
)
1120

1221

1322
__all__ = [
1423
"APIKeyAuth",
24+
"AuthScheme",
25+
"AuthenticatedUser",
1526
"BearerTokenAuth",
27+
"ClientAuthScheme",
1628
"HTTPBasicAuth",
1729
"HTTPDigestAuth",
1830
"OAuth2AuthorizationCode",
1931
"OAuth2ClientCredentials",
32+
"OIDCAuth",
33+
"ServerAuthScheme",
34+
"SimpleTokenAuth",
35+
"TLSConfig",
2036
]

0 commit comments

Comments
 (0)