Skip to content

refactor(max): Rename some things for a clearer agent architecture#26154

Merged
Twixes merged 4 commits intomasterfrom
max-refactor-conversation
Nov 12, 2024
Merged

refactor(max): Rename some things for a clearer agent architecture#26154
Twixes merged 4 commits intomasterfrom
max-refactor-conversation

Conversation

@Twixes
Copy link
Member

@Twixes Twixes commented Nov 12, 2024

Changes

A few refactoring changes to make AI agent development more intuitive:

  • Renamed _reconstruct_conversation to _construct_messages
  • Capitalized global constants like REACT_SYSTEM_PROMPT
  • Rename _run() methods on AssistantNode subclasses to be clearly differentiated from run(), like _run_with_prompt()
  • Renamed TestGeneratorNode to prevent pytest confusion (pytest considers every class starting with Test to be a test suite)

No functional changes.

@Twixes Twixes requested a review from skoob13 November 12, 2024 15:55
@Twixes Twixes merged commit 7b0e906 into master Nov 12, 2024
@Twixes Twixes deleted the max-refactor-conversation branch November 12, 2024 18:34
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