Rename MainLoop to AgentLoop throughout codebase#6
Closed
andreisavu wants to merge 2 commits intomainfrom
Closed
Conversation
- Update imports to use aliasing (MainLoop as AgentLoop, etc.) - Update all code references to use AgentLoop naming - Update docstrings and comments throughout the codebase - Update documentation in AGENTS.md and README.md - Update test files to use the new naming This terminology change makes the code more relatable and aligns with mainstream agent terminology, combining well with EvalLoop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR renames all references to
MainLooptoAgentLoopthroughout the trivia agent codebase to better reflect its purpose as a production agent processing loop. This is a comprehensive refactoring that updates documentation, type aliases, imports, and all usage sites.Key Changes
Type aliases: Created import aliases in
dispatch.py,mailboxes.py, andworker.pyto mapMainLoop*types toAgentLoop*names:MainLoopRequest→AgentLoopRequestMainLoopResult→AgentLoopResultMainLoopConfig→AgentLoopConfigMainLoop→AgentLoopClass renaming: Updated
TriviaAgentLoopclass to extend the aliasedAgentLooptype instead ofMainLoopDocumentation updates: Updated all docstrings, comments, and markdown files (AGENTS.md, README.md) to reference
AgentLoopinstead ofMainLoopTest updates: Updated test file imports and mock patches to use the new
AgentLoopRequestandAgentLoopResultaliasesImplementation Details
weakincentiveslibrary, maintaining compatibility while improving local naming clarity