8000 BREAKING CHANGE: messages -> query field in traj by klieret · Pull Request #1107 · SWE-agent/SWE-agent · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

BREAKING CHANGE: messages -> query field in traj #1107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 14, 2025
Merged

Conversation

klieret
Copy link
Member
@klieret klieret commented May 6, 2025

The query attribute now corresponds to the exact input for the LM at the current step.
Preciously, the messages attribute for step i was essentially the input for step i+1 in all but rare cases (requeries, etc.). The query attribute now supersedes the messages attribute.

The query attribute now corresponds to the exact input for the LM at the current step.
Preciously, the messages attribute for step i was essentially the input for step i+1 in all but rare cases (requeries, etc.). The query attribute now supersedes the messages attribute.
@klieret klieret requested a review from Copilot May 14, 2025 11:16
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a breaking change by replacing the messages field with a query field to more accurately represent the LM input at the current step. Key changes include:

  • Updating the StepOutput and TrajectoryStep models to use a query field.
  • Migrating legacy messages in the file viewer to the new query field.
  • Updating agent and documentation files to reference the new query field.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
sweagent/types.py Updated models: replaced messages with query
sweagent/inspector/fileViewer.js Migrated legacy messages to query and logged a warning
sweagent/agent/agents.py Adjusted assignment to use query instead of messages
docs/usage/trajectories.md Documented the breaking change from messages to query
docs/usage/cli.md Minor documentation update
Comments suppressed due to low confidence (1)

sweagent/inspector/fileViewer.js:47

  • [nitpick] The variable name 'hasMessages' may be misleading after migrating to 'query'; consider renaming it to 'hasQuery' for better clarity.
const hasMessages = item.query && item.query.length > 0;

@klieret klieret merged commit 2cfa96a into main May 14, 2025
6 checks passed
@klieret klieret deleted the fix-messages-attr branch May 14, 2025 11:23
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
0