Skip to content

Commit ecd7ea8

Browse files
committed
fix: code review comments
Signed-off-by: Tomas Weiss <[email protected]>
1 parent baaa7ec commit ecd7ea8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/beeai-sdk-ts/src/client/a2a/extensions/handle-agent-card.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ export const handleAgentCard = (agentCard: { capabilities: AgentCapabilities })
9393
}
9494

9595
if (formDemands) {
96-
const formFulfilment = await fulfillments.form(formDemands);
97-
if (formFulfilment) {
98-
fulfilledMetadata = fulfillFormDemand(fulfilledMetadata, formFulfilment);
96+
const formFulfillment = await fulfillments.form(formDemands);
97+
if (formFulfillment) {
98+
fulfilledMetadata = fulfillFormDemand(fulfilledMetadata, formFulfillment);
9999
}
100100
}
101101

apps/beeai-ui/src/api/a2a/part-processors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function processMessageMetadata(message: Message): UIMessagePart[] {
3838
parts.push(...sourceParts);
3939
}
4040
if (form) {
41-
return [createFormPart(form)];
41+
parts.push(createFormPart(form));
4242
}
4343

4444
return parts;

0 commit comments

Comments
 (0)