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

Add A Stateful Dev Environment by Jupiter example to gallery #1376

Merged
merged 2 commits into from
Jan 27, 2024

Conversation

randombet
Copy link
Collaborator

Why are these changes needed?

Jupyter Notebooks offer agents:
stateful code execution
a record of the conversation
an iterative environment where the team can ReAct to data and errors as the project progresses.

Notebooks also allow us humans to examine the team's output in a convenient format and even return to the notebook at a later date, to pick up from where we left off.

Most importantly, this implementation is easy and requires little code

Checks

Screenshot 2024-01-22 at 11 38 27 PM

@randombet randombet marked this pull request as draft January 23, 2024 07:39
@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fd0094c) 32.48% compared to head (f80c6f8) 32.48%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1376   +/-   ##
=======================================
  Coverage   32.48%   32.48%           
=======================================
  Files          41       41           
  Lines        4907     4907           
  Branches     1120     1120           
=======================================
  Hits         1594     1594           
  Misses       3187     3187           
  Partials      126      126           
Flag Coverage Δ
unittests 32.44% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@randombet
Copy link
Collaborator Author

@sonichi @olimoz @randombet

@randombet randombet marked this pull request as ready for review January 23, 2024 07:46
ekzhu
ekzhu previously approved these changes Jan 23, 2024
Copy link
Collaborator

@ekzhu ekzhu left a comment

Choose a reason for hiding this comment

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

It’s weird PR description but okay…

@sonichi sonichi requested review from olimoz and JingyaChen January 23, 2024 15:58
@ekzhu ekzhu dismissed their stale review January 23, 2024 16:49

Should wait for the author of notebook first.

@ekzhu
Copy link
Collaborator

ekzhu commented Jan 23, 2024

I made some edits to the description. @olimoz waiting for your final resolution :D

@randombet randombet force-pushed the noteboo_executor_example branch from 77daccb to b190bc8 Compare January 23, 2024 17:27
@randombet randombet requested a review from ekzhu January 23, 2024 17:43
@sonichi sonichi enabled auto-merge January 27, 2024 16:12
@sonichi sonichi added this pull request to the merge queue Jan 27, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 27, 2024
@sonichi sonichi enabled auto-merge January 27, 2024 18:58
@sonichi sonichi added this pull request to the merge queue Jan 27, 2024
Merged via the queue into microsoft:main with commit 185e927 Jan 27, 2024
19 checks passed
@olimoz
Copy link

olimoz commented Jan 29, 2024

Woops, bit late to this conversation. Please go ahead.

Meanwhile, I have drafted an implementation of the code executor for Jupyter Notebooks.
See: https://github.com/olimoz/AI_Teams_AutoGen/blob/main/JupyterNotebooksForAutoGen_Capability.ipynb

Uses capability, add_to_agent() and a NotebookCodeExecutor which is inspired by IPythonCodeExecutor at
https://app.codecov.io/gh/microsoft/autogen/pull/1405/blob/autogen/coding/ipython_code_executor.py

Copy link

@olimoz olimoz left a comment

Choose a reason for hiding this comment

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

Typo in description, spurious 's' after 'Team'.
Should read....

"description": "An AutoGen Team Powered by Jupyter Notebook."

corleroux pushed a commit to corleroux/autogen that referenced this pull request Jan 30, 2024
whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
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.

5 participants