Skip to content

[BREAKING] feat: add Dapr integration #3

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 5 commits into from
Jan 29, 2025
Merged

[BREAKING] feat: add Dapr integration #3

merged 5 commits into from
Jan 29, 2025

Conversation

unsafecode
Copy link
Contributor

@unsafecode unsafecode commented Jan 24, 2025

Summary

This pull request includes several updates and improvements to the project framework, particularly focusing on DAPR integration, remote agents, and various documentation enhancements. The most important changes are listed below:

DAPR Integration and Remote Agents:

  • Added DAPR integration to the framework, enabling event sourcing and decoupled communication between workflows. This includes hosting Askable and Workflow as Dapr Actors and integrating Dapr PubSub for multi-agent chat. [1] [2] [3]
  • Introduced a new remote submodule to support running agents on a remote server with REST and gRPC channels. This includes detailed documentation and examples for setting up remote agents and comparing them with Dapr Actors. [1] [2]

Documentation Enhancements:

  • Updated the README.md to include new features, such as DAPR integration and remote agents. [1] [2] [3]
  • Added new documentation files for actors.md and remote.md, providing comprehensive details on how to use Dapr Actors and remote agents. [1] [2]

Codebase Improvements:

  • Modified several Jupyter notebooks to update the stop_callback lambda function to use conv.messages instead of msgs, ensuring consistency and clarity in the code. [1] [2] [3] [4] [5] [6] [7] [8] [9]

Configuration and Build Process:

  • Updated .vscode/settings.json to change the source.organizeImports setting for Python to "explicit".
  • Improved the tasks.py file by reformatting the code for better readability and maintainability. [1] [2]

Samples and Examples:

  • Added new sample files for running a remote actor with Dapr, including _actor_askable.py and run.py, demonstrating how to set up and run a Dapr actor with a simple game example. [1] [2]

Does this introduce a breaking change?

[X] Yes
[] No
  • stop_callback now passes a Conversation object instread of list of messages

refactor: stop callback handling in Team class to accept whole conversation [BREAKING]
add: docs for remote and dapr
@unsafecode unsafecode changed the title feat: add Dapr integration [BREAKING] feat: add Dapr integration Jan 29, 2025
@unsafecode unsafecode merged commit 6b0109f into main Jan 29, 2025
2 checks passed
@unsafecode unsafecode deleted the features/actors branch January 29, 2025 14:20
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