feat: support clarification tool
This commit is contained in:
parent
69b225082b
commit
dc04042b53
|
|
@ -6,6 +6,7 @@ import {
|
|||
FolderOpenIcon,
|
||||
GlobeIcon,
|
||||
LightbulbIcon,
|
||||
MessageCircleQuestionMarkIcon,
|
||||
NotebookPenIcon,
|
||||
SearchIcon,
|
||||
SquareTerminalIcon,
|
||||
|
|
@ -83,7 +84,7 @@ export function MessageGroup({
|
|||
<span className="opacity-60">
|
||||
{showAbove
|
||||
? "Less steps"
|
||||
: `${aboveLastToolCallSteps.length} more steps`}
|
||||
: `${aboveLastToolCallSteps.length} more step${aboveLastToolCallSteps.length === 1 ? "" : "s"}`}
|
||||
</span>
|
||||
}
|
||||
icon={
|
||||
|
|
@ -318,6 +319,15 @@ function ToolCall({
|
|||
</ChainOfThoughtSearchResult>
|
||||
</ChainOfThoughtStep>
|
||||
);
|
||||
}
|
||||
if (name === "ask_clarification") {
|
||||
return (
|
||||
<ChainOfThoughtStep
|
||||
key={id}
|
||||
label="Need your help"
|
||||
icon={MessageCircleQuestionMarkIcon}
|
||||
></ChainOfThoughtStep>
|
||||
);
|
||||
} else {
|
||||
const description: string | undefined = (args as { description: string })
|
||||
?.description;
|
||||
|
|
|
|||
Loading…
Reference in New Issue