Skip to content
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

feat(autofix): Stream output in Autofix agent #1617

Merged
merged 4 commits into from
Dec 13, 2024
Merged

feat(autofix): Stream output in Autofix agent #1617

merged 4 commits into from
Dec 13, 2024

Conversation

roaga
Copy link
Member

@roaga roaga commented Dec 12, 2024

Replaces Autofix agent LLM calls with streaming. Saves the output as it comes in the step object in the run state. All other functionality is identical.

I added a function for streaming with OpenAI as well, and tested that it works, but we don't use it at the moment. Just future proofing.

@roaga roaga requested a review from jennmueng December 12, 2024 20:57
@roaga roaga requested a review from a team as a code owner December 12, 2024 20:57
@@ -128,7 +128,7 @@ def invoke(
for i, item in enumerate(cause_model.code_context):
item.id = i
# Find line range for the snippet
if item.snippet.file_path and item.snippet.snippet:
if item.snippet and item.snippet.file_path and item.snippet.snippet:
Copy link
Member Author

Choose a reason for hiding this comment

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

fix for unrelated bug

@roaga roaga requested a review from trillville December 12, 2024 23:26
Copy link
Member

@jennmueng jennmueng left a comment

Choose a reason for hiding this comment

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

LGTM, well tested! One little suggestion

src/seer/automation/autofix/autofix_agent.py Show resolved Hide resolved
@roaga roaga merged commit 9296c53 into main Dec 13, 2024
11 checks passed
@roaga roaga deleted the autofix/streaming branch December 13, 2024 22:56
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.

3 participants