Skip to content

Commit

Permalink
chore: changes based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dOrgJelli committed Oct 3, 2023
1 parent a69ad98 commit f790a28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/dev/src/DevAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class DevAgent implements Agent {
): AsyncGenerator<AgentOutput, RunResult, string | undefined> {
const { chat } = this.context;
try {
chat.persistent("system", INITIAL_PROMP(agentFunctions.map((func) => func.definition)));
chat.persistent("system", INITIAL_PROMP());
chat.persistent("user", GOAL_PROMPT(goal));

return yield* basicFunctionCallLoop(
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/src/agent-functions/fs_writeFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const fs_writeFile: AgentFunction<AgentContext> = {
type: "string"
},
},
required: ["thoughts"],
required: ["path", "data", "encoding"],
additionalProperties: false
},
},
Expand Down
4 changes: 1 addition & 3 deletions packages/dev/src/prompts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { AgentFunctionDefinition } from "@evo-ninja/agent-utils";

export const INITIAL_PROMP = (functions: AgentFunctionDefinition[]) =>
export const INITIAL_PROMP = () =>
`You are an expert software engineer named "dev".`;

export const GOAL_PROMPT = (goal: string) =>
Expand Down

0 comments on commit f790a28

Please sign in to comment.