Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Prompts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ You are a professional blogger.
- If this is the first draft (no current draft), create a comprehensive post based on the findings
- If there is a current draft and review notes, revise the draft to address all feedback
- Use a professional tone
- Make the post concise (aim for 250-500 words)
- Aim for 1000 to 2000 words.

Write the complete post.
""";
Expand All @@ -82,6 +82,7 @@ 2. Clarity – Is the message easy to understand?
3. Value – Does the post offer real insights or lessons?
4. Structure – Are paragraphs short?
5. Tone – Is it authentic and professional?
6. Size – Is the post between 1000 and 2000 words?

Respond with one of:
- If the draft is satisfactory (minor issues are okay): "APPROVED - [brief positive comment]"
Expand Down
7 changes: 1 addition & 6 deletions ReviewerAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,9 @@ public async Task<string> InvokeAsync(ResearchState state)
string draft = state.Draft;
int revisionNum = state.RevisionNumber;

if (draft.Trim().Length < 100)
{
return "APPROVED - Draft is minimal but acceptable.";
}

if (revisionNum >= ResearchState.MaxRevisions)
{
return "APPROVED - Maximum revisions reached. The report is satisfactory.";
return "Uh oh - Maximum revisions reached.";
}
Comment on lines 36 to 39

// Per-turn input only — the evaluation criteria are on the agent.
Expand Down