chat-ui-energy / src /lib /server /tools /directlyAnswer.ts
nsarrazin's picture
nsarrazin HF Staff
Function calling (#996)
564e576 unverified
raw
history blame
462 Bytes
import { ToolResultStatus } from "$lib/types/Tool";
import type { BackendTool } from ".";
const directlyAnswer: BackendTool = {
name: "directly_answer",
isOnByDefault: true,
isHidden: true,
isLocked: true,
description: "Use this tool to let the user know you wish to answer directly",
parameterDefinitions: {},
async *call() {
return {
status: ToolResultStatus.Success,
outputs: [],
display: false,
};
},
};
export default directlyAnswer;