Skip to content

Add CompressibleAgent#443

Merged
sonichi merged 77 commits into
mainfrom
compressible
Nov 10, 2023
Merged

Add CompressibleAgent#443
sonichi merged 77 commits into
mainfrom
compressible

Conversation

@yiranwu0

@yiranwu0 yiranwu0 commented Oct 26, 2023

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Adding CompressibleAgent. While this agent retains all the default functionalities of the AssistantAgent,
it also provides the added feature of compression when activated through the compress_config setting. (Continued from #131 ).

User can choose from 3 modes: "COMPRESS": default compression, "TERMINATE": terminate chat on max token limit, "CUSTOMIZED": pass in a customized function to compress messages before call generate_oai_reply.

Related issue number

Checks

Comment thread .github/workflows/contrib-openai.yml Outdated
Comment thread .github/workflows/contrib-tests.yml
Comment thread .github/workflows/contrib-tests.yml Outdated
Comment thread test/agentchat/contrib/test_compressible_agent.py Outdated
Comment thread test/test_notebook.py Outdated
Comment thread test/agentchat/contrib/test_compressible_agent.py
Comment thread autogen/agentchat/contrib/compressible_agent.py Outdated
@yiranwu0

yiranwu0 commented Nov 7, 2023

Copy link
Copy Markdown
Contributor Author

I am trying get people to try it out. But can we get it merged at the same time?

@sonichi

sonichi commented Nov 7, 2023

Copy link
Copy Markdown
Contributor

CompressionTest doesn't show up in the OpenAIContrib test. Could you change "pull_request_target" into "pull_request"?

@sonichi

sonichi commented Nov 9, 2023

Copy link
Copy Markdown
Contributor

The test passed. Now you can change back to "pull_request_target" and then we can merge.

@yiranwu0

yiranwu0 commented Nov 9, 2023

Copy link
Copy Markdown
Contributor Author

The test passed. Now you can change back to "pull_request_target" and then we can merge.

Sure!

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.

8 participants