fix(a2a): handle missing extended card support flag by codingkiddo · Pull Request #4632 · alibaba/spring-ai-alibaba (original) (raw)
Summary
Handle a missing supportsAuthenticatedExtendedCard value when converting
a Nacos AgentCard into an A2A AgentCard.
The Nacos model exposes this field as a nullable Boolean, while the A2A
builder path expects a concrete boolean value. When the field is absent, the
conversion previously triggered a Boolean.booleanValue() failure.
Changes
- Default a missing
supportsAuthenticatedExtendedCardvalue tofalse - Add a regression test for the null conversion path
Testing
mvn -pl spring-boot-starters/spring-ai-alibaba-starter-a2a-nacos -Dtest=AgentCardConverterUtilTest testmvn -pl spring-boot-starters/spring-ai-alibaba-starter-a2a-nacos test
Fixes #4622