Skip to content

Conversation

@drewdrewthis
Copy link
Collaborator

…ment

  • Remove pendingRolesOnTurn, pendingAgentsOnTurn, and turn orchestration logic
  • Simplify user(), agent(), judge() methods to call agents directly
  • Replace complex proceed() with simple user→agent→judge loop
  • Remove scriptCallAgent and callAgent abstraction layers
  • Keep fail-fast judge evaluation behavior
  • Reduce code complexity from 682 lines to 136 lines in execution system

This maintains the same functionality while dramatically simplifying the codebase.

…ment

- Remove pendingRolesOnTurn, pendingAgentsOnTurn, and turn orchestration logic
- Simplify user(), agent(), judge() methods to call agents directly
- Replace complex proceed() with simple user→agent→judge loop
- Remove scriptCallAgent and callAgent abstraction layers
- Keep fail-fast judge evaluation behavior
- Reduce code complexity from 682 lines to 136 lines in execution system

This maintains the same functionality while dramatically simplifying the codebase.
- Fix reference to this.config.agents instead of this.agents
- Remove getter pattern and use this.state.result directly
- Implement createUserInput, createAgentInput, and createJudgeInput methods
- Add AgentInput import
- Create scenario-execution.utils.ts with ScenarioExecutionUtils export
- Move convertAgentReturnTypesToMessages and extractErrorInfo to utils
- Update scenario-execution.ts to import and use utils
- Improve file structure compliance with single responsibility principle
- Simplify overly verbose class and method documentation
- Remove implementation details from API docs
- Focus on essential usage information
- Keep docs concise and user-focused
@drewdrewthis drewdrewthis force-pushed the issue165/refactor-scenario-runner-smart-runner-dumb-agents-architecture branch from 15dddc2 to c3cf697 Compare November 25, 2025 20:18
@rogeriochaves rogeriochaves force-pushed the main branch 2 times, most recently from 77a92af to 9fdb87c Compare December 16, 2025 15:54
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.

2 participants