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 further installation guidance and files for CaptainAgent #76

Merged
merged 10 commits into from
Nov 28, 2024

Conversation

marklysze
Copy link
Collaborator

@marklysze marklysze commented Nov 23, 2024

Why are these changes needed?

The notebook documentation for CaptainAgent advises to install via pip install ag2[autobuild], this should be pip install ag2[captainagent]. Furthermore, the blog post doesn't provide any guidance, so I've added a quick note.

Also, the default tools library for CaptainAgent is not being included with the pip install, so have added this so it will be installed when using pip install ag2 (can't be specific to extras).

Have also corrected the code on the blog, minor import issue, as well as changing the model in the sample code to GPT-4o as it was noted that this was more reliable.

For the pysqlite3 installation issue:
Instead of installing pysqlite3, it will now install pysqlite3-binary which does not require building of pysqlite3. When running the code after a test pip install, I could see that this binary version creates both a pysqlite3 and pysqlite3-binary site-package folder, both with the compiled binary. Running a sample code and stepping through shows that pysqlite3 is being detected and used.

If others can test with a pip install using this branch and testing CaptainAgent that would be great:

  1. Create a virtual environment (e.g. conda create -n ...)
  2. Enter the virtual environment (e.g. conda activate ...)
  3. After cloning the branch, go into the root folder of the code
  4. Run pip install -v ".[captainagent]"
  5. Make sure that the ...site-packages/autogen folder (find the site-packages folder through pip show ag2) has the CaptainAgent 3 tools sub-folders and files (.../autogen/agentchat/contrib/captainagent/tools/...)
  6. Run a sample program (e.g. from the blog) and make sure it runs through okay

Related issue number

N/A

Checks

Fixes #82

setup.py Outdated Show resolved Hide resolved
website/blog/2024-11-15-CaptainAgent/index.mdx Outdated Show resolved Hide resolved
website/blog/2024-11-15-CaptainAgent/index.mdx Outdated Show resolved Hide resolved
MANIFEST.in Outdated Show resolved Hide resolved
notebook/agentchat_captainagent.ipynb Show resolved Hide resolved
…, excluding unnecessary mdx in .gitignore, grammar
Co-authored-by: Chi Wang <4250911+sonichi@users.noreply.github.com>
Co-authored-by: Chi Wang <4250911+sonichi@users.noreply.github.com>
Signed-off-by: Mark Sze <mark@sze.family>
Signed-off-by: Mark Sze <mark@sze.family>
Signed-off-by: Mark Sze <mark@sze.family>
setup.py Outdated Show resolved Hide resolved
…so no compile, plus blog code fix and model update

Signed-off-by: Mark Sze <mark@sze.family>
@qingyun-wu qingyun-wu added this pull request to the merge queue Nov 28, 2024
Merged via the queue into main with commit 82a057c Nov 28, 2024
191 of 199 checks passed
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.

[Issue]: Can't successfully install CaptainAgent
6 participants