{message.usedTools && (
{message.usedTools.map((tool, index) => {
return (
onSourceDialogClick(tool, 'Used Tools')}
/>
)
})}
)}
{/* Messages are being rendered in Markdown format */}
) : (
{children}
)
}
}}
>
{message.message}
{message.fileAnnotations && (
{message.fileAnnotations.map((fileAnnotation, index) => {
return (
)
})}
)}
{message.sourceDocuments && (
{removeDuplicateURL(message).map((source, index) => {
const URL =
source.metadata && source.metadata.source
? isValidURL(source.metadata.source)
: undefined
return (
URL
? onURLClick(source.metadata.source)
: onSourceDialogClick(source)
}
/>
)
})}
)}