mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-11 09:44:44 +08:00
Check the output links are hallucinations from AI (#139)
* feat: check output links if a hallucination from AI
This commit is contained in:
@@ -377,3 +377,14 @@ export function useLastFeedbackMessageId() {
|
||||
);
|
||||
return waitingForFeedbackMessageId;
|
||||
}
|
||||
|
||||
export function useToolCalls() {
|
||||
return useStore(
|
||||
useShallow((state) => {
|
||||
return state.messageIds
|
||||
?.map((id) => getMessage(id)?.toolCalls)
|
||||
.filter((toolCalls) => toolCalls != null)
|
||||
.flat();
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user