autogen icon indicating copy to clipboard operation
autogen copied to clipboard

[CAP] Abstraction of actor_connector to go along with runtime factory and runtime abstraction

Open rajan-chari opened this issue 1 year ago • 1 comments

Why are these changes needed?

AutoGen CAP comes with a default runtime, that's ready to use out of the box, to make it easy to start building Agents in minutes. However, different use cases and environments may require their own runtimes to host AutoGen CAP Agents. Runtime factories were added to make it easy to create new runtimes.

Along with runtime factories runtimes were also abstracted so that Agents/Actors can switch to different runtime implementations as needed.

This PR introduces and abstraction for agent connectors since they will depend on the needs of each runtime. Default implementation is also provided to make it super easy to start building Agents with AutoGen CAP.

Related issue number

Checks

  • [x] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
  • [x] I've added tests (if relevant) corresponding to the changes introduced in this PR.
  • [x] I've made sure all auto checks have passed.

rajan-chari avatar Aug 05 '24 22:08 rajan-chari

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

Since your pull request originates from a forked repository, GitGuardian is not able to associate the secrets uncovered with secret incidents on your GitGuardian dashboard. Skipping this check run and merging your pull request will create secret incidents on your GitGuardian dashboard.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
10404695 Triggered Generic High Entropy Secret 3357b3ea1bd418c2e3e97fd99e7e1fe3e1a4d8d1 test/oai/test_utils.py View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

gitguardian[bot] avatar Aug 05 '24 22:08 gitguardian[bot]

Hi Rajan, we've rebased and updated the branch for you. If you are still considering bringing this PR forward please go ahead and update and mark as ready for review. You may also consider having a closer look at 0.4 which has moved to an event-driven actor model. If you are not going to finish this PR please go ahed and close it.

rysweet avatar Oct 12 '24 00:10 rysweet

Hi Rajan, we've rebased and updated the branch for you. If you are still considering bringing this PR forward please go ahead and update and mark as ready for review. You may also consider having a closer look at 0.4 which has moved to an event-driven actor model. If you are not going to finish this PR please go ahed and close it.

Hi Ryan, I will update the PR and mark it as ready for review in a short while.

rajan-chari avatar Oct 14 '24 22:10 rajan-chari