-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Partial implementation * Partial implementation * Fixes * update tests * cleanup * update tests * comments * logging * wording * underscore * Extend notebook for teachable GPTAssistantAgent * Notebook for teachable GPTAssistantAgents * Update notebook * Update notebook * Update notebook * Update notebook * revert file * Update blog post and other documentation. * pre-commit * Address reviewer feedback. * Add new nb link to examples page. --------- Co-authored-by: Chi Wang <[email protected]>
- Loading branch information
1 parent
172df55
commit 3680197
Showing
13 changed files
with
1,719 additions
and
472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
autogen/agentchat/contrib/capabilities/agent_capability.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from autogen.agentchat.assistant_agent import ConversableAgent | ||
|
||
|
||
class AgentCapability: | ||
"""Base class for composable capabilities that can be added to an agent.""" | ||
|
||
def __init__(self): | ||
pass | ||
|
||
def add_to_agent(self, agent: ConversableAgent): | ||
""" | ||
Adds a particular capability to the given agent. Must be implemented by the capability subclass. | ||
An implementation will typically call agent.register_hook() one or more times. See teachability.py as an example. | ||
""" | ||
raise NotImplementedError |
266 changes: 116 additions & 150 deletions
266
autogen/agentchat/contrib/teachable_agent.py → ...chat/contrib/capabilities/teachability.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.