Skip to main content

Typesafe prompt construction for LLM and image inference with zod-parsed results.

This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
94%
Published
2 days ago (0.9.2)
variable JSON_PROMPT

The string included in the prompt to indicate JSON should be generated in the result.

Type

"You must return the result as a JSON object."

Add Package

deno add jsr:@schoolai/ts-prompt

Import symbol

import { JSON_PROMPT } from "@schoolai/ts-prompt";

---- OR ----

Import directly with a jsr specifier

import { JSON_PROMPT } from "jsr:@schoolai/ts-prompt";

Add Package

npx jsr add @schoolai/ts-prompt

Import symbol

import { JSON_PROMPT } from "@schoolai/ts-prompt";

Add Package

yarn dlx jsr add @schoolai/ts-prompt

Import symbol

import { JSON_PROMPT } from "@schoolai/ts-prompt";

Add Package

pnpm dlx jsr add @schoolai/ts-prompt

Import symbol

import { JSON_PROMPT } from "@schoolai/ts-prompt";

Add Package

bunx jsr add @schoolai/ts-prompt

Import symbol

import { JSON_PROMPT } from "@schoolai/ts-prompt";