mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-05-01 17:50:44 +08:00
@@ -9,6 +9,7 @@ import {
|
|||||||
ChevronDown,
|
ChevronDown,
|
||||||
ChevronRight,
|
ChevronRight,
|
||||||
Lightbulb,
|
Lightbulb,
|
||||||
|
Wrench,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
import React, { useCallback, useMemo, useRef, useState } from "react";
|
import React, { useCallback, useMemo, useRef, useState } from "react";
|
||||||
@@ -440,7 +441,7 @@ function PlanCard({
|
|||||||
const plan = useMemo<{
|
const plan = useMemo<{
|
||||||
title?: string;
|
title?: string;
|
||||||
thought?: string;
|
thought?: string;
|
||||||
steps?: { title?: string; description?: string }[];
|
steps?: { title?: string; description?: string; tools?: string[] }[];
|
||||||
}>(() => {
|
}>(() => {
|
||||||
return parseJSON(message.content ?? "", {});
|
return parseJSON(message.content ?? "", {});
|
||||||
}, [message.content]);
|
}, [message.content]);
|
||||||
@@ -648,3 +649,18 @@ function PodcastCard({
|
|||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ToolsDisplay({ tools }: { tools: string[] }) {
|
||||||
|
return (
|
||||||
|
<div className="mt-2 flex flex-wrap gap-1">
|
||||||
|
{tools.map((tool, index) => (
|
||||||
|
<span
|
||||||
|
key={index}
|
||||||
|
className="rounded-md bg-muted px-2 py-1 text-xs font-mono text-muted-foreground"
|
||||||
|
>
|
||||||
|
{tool}
|
||||||
|
</span>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user