Skip to content

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
Member

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
Member

Choose a reason for hiding this comment

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

remove

import streamlit as st

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

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