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

Feat: AgentLegoToolkit #164

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

liujiangning30
Copy link
Collaborator

No description provided.

api_desc.append(api.description)
if len(api_list) > 1:
tool_description = dict(name=type, api_list=api_desc)
self.add_method(api_list)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
self.add_method(api_list)
self.add_method(api_list)
Suggested change
self.add_method(api_list)
for func in api_list:
setattr(self, func.name, func.run)

Comment on lines 49 to 51
def add_method(self, funcs):
for func in funcs:
setattr(self, func.name, func.run)
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove

@@ -6,6 +6,7 @@
import streamlit as st

from lagent.actions import ActionExecutor, ArxivSearch, IPythonInterpreter
from lagent.actions.agentlego_wrapper import AgentLegoToolkit
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
from lagent.actions.agentlego_wrapper import AgentLegoToolkit
# from lagent.actions.agentlego_wrapper import AgentLegoToolkit

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.

3 participants