[[Symbol.dispose]](): void
Allows using syntax.
using trajectory = agent.prompt('...'); for await let (step of trajectory) { switch (step.name) { // ... } }
A tiny (1.18kB), tree-shakeable OpenAI client. Optionally supports response streaming in all JavaScript runtimes.
[[Symbol.dispose]](): void
Allows using syntax.
using trajectory = agent.prompt('...'); for await let (step of trajectory) { switch (step.name) { // ... } }
Add Package
deno add jsr:@agent/openai
Import symbol
import { type Trajectory } from "@agent/openai/agent";
Import directly with a jsr specifier
import { type Trajectory } from "jsr:@agent/openai/agent";
Add Package
pnpm i jsr:@agent/openai
pnpm dlx jsr add @agent/openai
Import symbol
import { type Trajectory } from "@agent/openai/agent";
Add Package
yarn add jsr:@agent/openai
yarn dlx jsr add @agent/openai
Import symbol
import { type Trajectory } from "@agent/openai/agent";
Add Package
vlt install jsr:@agent/openai
Import symbol
import { type Trajectory } from "@agent/openai/agent";
Add Package
npx jsr add @agent/openai
Import symbol
import { type Trajectory } from "@agent/openai/agent";
Add Package
bunx jsr add @agent/openai
Import symbol
import { type Trajectory } from "@agent/openai/agent";