Skip to content

Synchup with Agent Framework#83

Merged
alexheifetz merged 1 commit intomainfrom
synchup-agent
Nov 1, 2025
Merged

Synchup with Agent Framework#83
alexheifetz merged 1 commit intomainfrom
synchup-agent

Conversation

@alexheifetz
Copy link
Contributor

This pull request refactors how feedback and evaluation results are accessed within the repeat-until loops in both GoatWriterConfig.java and ReviseStoryUntilSatisfied.java. The main improvement is switching from retrieving feedback and evaluation results via context.getInput() to using more direct methods on the context object, which simplifies the code and makes it clearer.

Refactoring feedback and evaluation retrieval:

  • Updated feedback retrieval in both goatWriter() and rewriteUntilSatisfied() methods to use context.lastAttempt() instead of context.getInput().lastFeedback(), improving clarity and directness. [1] [2]
  • Changed result evaluation access to use context.getResultToEvaluate() rather than context.getInput().resultToEvaluate(), streamlining how the result to be evaluated is obtained. [1] [2]

Code cleanup:

  • Removed an unnecessary import in GoatWriterConfig.java for tidier code.

@alexheifetz alexheifetz merged commit c2697d3 into main Nov 1, 2025
2 checks passed
@alexheifetz alexheifetz deleted the synchup-agent branch November 1, 2025 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant