Skip to content

Commit c1108ba

Browse files
committed
fix: Handle icon_url in ToProto#agentCard
1 parent a8af8ac commit c1108ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec-grpc/src/main/java/io/a2a/grpc/utils/ProtoUtils.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ public static io.a2a.grpc.AgentCard agentCard(AgentCard agentCard) {
132132
if (agentCard.signatures() != null) {
133133
builder.addAllSignatures(agentCard.signatures().stream().map(ToProto::agentCardSignature).collect(Collectors.toList()));
134134
}
135+
if (agentCard.iconUrl() != null) {
136+
builder.setIconUrl(agentCard.iconUrl());
137+
}
135138
return builder.build();
136139
}
137140

0 commit comments

Comments
 (0)