Skip to content

Conversation

@Aman5Techie
Copy link

Issue number:

Summary

Changes

Refactored the dispatch_to_agent function call to use named parameters for better readability and maintainability. The params dictionary now explicitly names the parameters being passed.

User experience

Before:

agent_response = await self.dispatch_to_agent({
    "user_input": user_input,
    "user_id": user_id,
    "session_id": session_id,
    "classifier_result": classifier_result,
    "additional_params": additional_params
})

After:

agent_response = await self.dispatch_to_agent(params={
    "user_input": user_input,
    "user_id": user_id,
    "session_id": session_id,
    "classifier_result": classifier_result,
    "additional_params": additional_params
})

The change makes it clear that the dictionary being passed is specifically for the params parameter, improving code readability and making the intention of the code more understandable.

Checklist

If your change doesn't seem to apply, please leave them unchecked.

  • I have performed a self-review of this change
  • Changes have been tested
  • Changes are documented
Is this a breaking change? NO

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

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