diff --git a/legacy/examples/json-summary.ts b/legacy/examples/json-summary.ts index d3396ed0..321ddf01 100644 --- a/legacy/examples/json-summary.ts +++ b/legacy/examples/json-summary.ts @@ -32,8 +32,6 @@ export async function main() { .call({ article }) - - console.log('example', example) } main() diff --git a/legacy/examples/summary.ts b/legacy/examples/summary.ts deleted file mode 100644 index b840848c..00000000 --- a/legacy/examples/summary.ts +++ /dev/null @@ -1,16 +0,0 @@ -import dotenv from 'dotenv-safe' -import { OpenAIClient } from 'openai-fetch' -import { z } from 'zod' - -import { Agentic } from '../src' - -dotenv.config() - -export async function summaryAgent() { - const openai = new OpenAIClient({ apiKey: process.env.OPENAI_API_KEY! }) - const $ = new Agentic({ openai }) - - return $.gpt4( - `You are an expert at summarizing web pages. Summarize this article for me: {{article}}` - ).input(z.object({ article: z.string() })) -}