close
Skip to main content

latest
Works with
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score82%
Publisheda year ago (1.0.1)

Functions

f
completeWithSchema(
apiKey: string,
baseURL: string,
schema: Record<string, unknown>,
systemPrompt: string,
userPrompt: string,
model?: string
): Promise<[string, string | undefined]>

Performs a completion using the provided schema, system prompt, and user prompt. The schema instruction is automatically appended to the system prompt.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@deno-agents/utils

Import symbol

import { completeWithSchema } from "@deno-agents/utils";
or

Import directly with a jsr specifier

import { completeWithSchema } from "jsr:@deno-agents/utils";