
Security News
Federal Audit Finds NIST Wasted Funds With No Plan to Clear NVD Backlog
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.
ease the integration of hermes function calling prompt format into typescript ecosystem with typed function calls
pnpm add functhem
import { z } from "zod"
import { Tool, Functhem } from "functhem"
const happySchema = z.object({
name: z.literal("isHappy"),
arguments: z.object({
isHappy: z.boolean(),
}),
})
const happyTool = new Tool<typeof happySchema>({
name: "isHappy",
description: "Is the user happy?",
schema: happySchema,
})
const movieSchema = z.object({
name: z.literal("watchMovie"),
arguments: z.object({
genre: z.string(),
}),
})
const movieTool = new Tool<typeof movieSchema>({
name: "watchMovie",
description:
"Does the user express that they want to see a movie, if so, which genre?",
schema: movieSchema,
})
const functhem = new Functhem([happyTool, movieTool])
const sysMsg = functhem.getSysMsg()
const output = await yourInferenceFunction({
messages: [
{
role: "system",
content: functhem.getSysMsg(), // <-- HERE
},
{
role: "user",
content: `Input: so stressed, just want to see a funny movie\nProcess the user input with your tools.`,
},
],
})
const outCalls = functhem.parseOut(output) // <-- HERE
outCalls.forEach((one) => {
switch (one.name) {
case "isHappy": {
console.log(one.arguments.isHappy)
break
}
case "watchMovie": {
console.log(one.arguments.genre)
break
}
}
})
FAQs
functhem
We found that functhem demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.