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

ref(agents): Better interface for LLM agents and clients + test coverage #918

Merged
merged 6 commits into from
Jul 17, 2024

Conversation

jennmueng
Copy link
Member

@jennmueng jennmueng commented Jul 17, 2024

A major refactor of our agents and clients to better strengthen key structural pathways in Autofix & increase test coverage

  • Tested locally e2e with a root cause run

@jennmueng jennmueng requested review from corps and a team July 17, 2024 15:48
return TestAgent(config)

def test_initialization(self, agent: LlmAgent, config: AgentConfig):
assert agent.config == config
Copy link
Member

Choose a reason for hiding this comment

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

just minor nit, these types of test seem, low value? Like I'm confident this code gets covered by other parts, and there isn't really much logic or assertions here.



@stub_module.provider
def provide_stub_gpt_client() -> GptClient:
Copy link
Member

Choose a reason for hiding this comment

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

👍

@jennmueng jennmueng enabled auto-merge (squash) July 17, 2024 16:40
@jennmueng jennmueng merged commit b5d10ae into main Jul 17, 2024
5 checks passed
@jennmueng jennmueng deleted the jenn/autofix/agent-ref branch July 17, 2024 16:44
Copy link

sentry-io bot commented Jul 29, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ MaxIterationsReachedException: Agent GptAgent reached maximum iterations without finishing. seer.automation.autofix.steps.root_cause_step.r... View Issue

Did you find this useful? React with a 👍 or 👎

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