Commit Graph

6 Commits

Author SHA1 Message Date
Devin AI
c768afd1a1 fix: correct tautological assertion in compact separators test
Co-Authored-By: João <joao@crewai.com>
2026-03-14 05:31:49 +00:00
Devin AI
250b9f5815 fix: remove hardcoded private key placeholders from docstrings and add signing tests
- Replace '-----BEGIN PRIVATE KEY-----...' and '-----BEGIN PUBLIC KEY-----...'
  placeholders in docstring examples with '<PEM-encoded private key>' and
  '<PEM-encoded public key>' to avoid triggering security scanners.
- Add comprehensive test suite for agent_card_signing.py (40 tests) covering:
  - Key normalization (bytes, str, SecretStr)
  - AgentCard serialization (JSON validity, determinism, signature exclusion)
  - Base64url encoding (padding, URL safety, roundtrip)
  - RSA signing and verification
  - EC (ES256) signing and verification
  - Tampered card detection
  - Corrupted signature handling
  - Key ID extraction from protected/unprotected headers
  - Assertion that no hardcoded PEM key headers exist in source

Closes #4864

Co-Authored-By: João <joao@crewai.com>
2026-03-14 05:27:33 +00:00
Greyson LaLonde
102b6ae855 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
2026-01-30 17:10:00 -05:00
Greyson LaLonde
ceef062426 feat: add additional a2a events and enrich event metadata
Some checks failed
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Notify Downstream / notify-downstream (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled
2026-01-16 16:57:31 -05:00
Greyson LaLonde
6a19b0a279 feat: a2a task execution utilities 2026-01-14 22:56:17 -05:00
Greyson LaLonde
22f1812824 feat: add a2a server config; agent card generation 2026-01-14 22:09:11 -05:00