Files
basically-ai-harness/agent/3-context.ts
T
Tejas Kumar eeb5f0ff9d Simplify
2026-04-02 11:06:18 +02:00

16 lines
522 B
TypeScript

import type { ChatCompletionMessageParam } from "openai/resources/chat/completions";
const SYSTEM_PROMPT = `
You are a helpful assistant with access to tools.
Use tools whenever they help you give a more accurate answer.
When you have enough information, respond directly and concisely.
`.trim();
// Build the initial context for a new task
export function createContext(task: string): ChatCompletionMessageParam[] {
return [
{ role: "system", content: SYSTEM_PROMPT },
{ role: "user", content: task },
];
}