Skip to content

Commit

Permalink
add goal instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Feb 26, 2024
1 parent 3fbce1b commit 9aba871
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib/evaluators/__tests__/goal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe("Goals Evaluator", () => {
{
user_id: zeroUuid,
content: {
content: "That's unfortunate. Let's reflect on what went wrong.",
content: "That's unfortunate. Let's cancel it..",
},
},
];
Expand All @@ -149,7 +149,7 @@ describe("Goals Evaluator", () => {
senderId: user.id as UUID,
agentId: zeroUuid,
userIds: [user.id as UUID, zeroUuid],
content: { content: "I've decided to give up on Goal Y." },
content: { content: "I've decided to mark Goal Y as failed." },
room_id,
};

Expand Down
5 changes: 3 additions & 2 deletions src/lib/evaluators/goal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ Analyze the conversation and update the status of the goals based on the new inf
- Update the status of the goal to 'DONE' if all objectives are completed.
- If no progress is made, do not change the status of the goal.
- Goal status options are 'IN_PROGRESS', 'DONE' and 'FAILED'. If the goal is active it should always be 'IN_PROGRESS'.
# START OF ACTUAL TASK INFORMATION
{{goals}}
Expand All @@ -25,6 +23,9 @@ TASK: Analyze the conversation and update the status of the goals based on the n
- Each item must include the goal ID, as well as the fields in the goal to update.
- For updating objectives, include the entire objectives array including unchanged fields.
- Only include goals which need to be updated.
- Goal status options are 'IN_PROGRESS', 'DONE' and 'FAILED'. If the goal is active it should always be 'IN_PROGRESS'.
- If the goal has been successfully completed, set status to DONE. If the goal cannot be completed, set status to FAILED.
- If those goal is still in progress, do not include the status field.
Response format should be:
\`\`\`json
Expand Down

0 comments on commit 9aba871

Please sign in to comment.