My workaround... override handleSendMessage
return (
<Authenticator>
<AIConversation
handleSendMessage={(params) =>
handleSendMessage(
{
...params,
toolConfiguration: {
tools: {
...params.toolConfiguration?.tools,
AMPLIFY_UI_JiraIssueCard: {
description: "List Jira issues",
inputSchema: {
json: {
type: "object",
properties: {
tickets: {
type: "array",
items: {
type: "object",
properties: {
assignee: {
type: "object",
properties: {
name: { type: "string" },
avatarUrl: { type: "string" },
},
},
},
},
},
},
},
},
},
},
},
}
)
}
responseComponents={{
JiraIssueCard: {
description: "Used to display a list of Jira issues",
component: ({ tickets }) => {
return <JiraIssueCard tickets={tickets} />;
},
props: {
tickets: {
type: "array",
required: true,
description:
"Jira issues with key, name, description, status, priority, and assignee for display",
},
},
}
}}
/>
</Authenticator>
);`