lgrammel / js-agent

Build AI Agents with JS & TS
MIT License
229 stars 35 forks source link

javascript-developer where is hello ? #19

Open scenaristeur opened 1 year ago

scenaristeur commented 1 year ago

hello, ihave run pnpm run-agentcat example/helloworld/task.txt but i don't find any helloworld.js , where should it be? nothing in the drive folder... any idea why ?

dev/js-agent/examples/javascript-developer$ pnpm run-agent `cat example/helloworld/task.txt`

> @js-agent/example-javascript-developer@0.0.0 run-agent /home/smag/dev/js-agent/examples/javascript-developer
> ts-node ./src/main.ts "The" "classical" "introductory" "exercise." "Just" "say" "\"Hello," "World!\"." "\"Hello," "World!\"" "is" "the" "traditional" "first" "program" "for" "beginning" "programming" "in" "a" "new" "language" "or" "environment." "The" "objectives" "are" "simple:" "Write" "a" "program" "that" "prints" "the" "string" "\"Hello," "World!\"." "Write" "the" "program" "in" "JavaScript." "Locate" "the" "program" "and" "run" "it."

### JavaScript Developer Agent ###
{
  task: 'The classical introductory exercise. Just say "Hello, World!". "Hello, World!" is the traditional first program for beginning programming in a new language or environment. The objectives are simple: Write a program that prints the string "Hello, World!". Write the program in JavaScript. Locate the program and run it.',
  projectInstructions: 'You are working on a JavaScript/TypeScript project.'
}

Thinking…
Done
{ type: 'succeeded', summary: 'Completed all tasks.' }
Run cost: $0.00
LLM calls: 0
lgrammel commented 1 year ago

Looks like it did not execute anything - are you using GPT-4? (I've recently seen rumours that it's output has become less reliable)