-
Notifications
You must be signed in to change notification settings - Fork 0
[IOE-735] pack 12 #133
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
base: dev
Are you sure you want to change the base?
[IOE-735] pack 12 #133
Conversation
api_key=self.api_key_, | ||
search_youtube=self.search_youtube, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some are state params, so need to be exposed via pydantic fields, and some control agno tool exposure, so must be set to True
; please read tool's __init__
to see which are which
|
||
@wrap_tool("agno__serpapi__search_google", AgnoSerpApiTools.search_google) | ||
def search_google(self, query: str, num_results: int = 10) -> str: | ||
return self.search_google(self, query, num_results) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return self.search_google(self, query, num_results) | |
return self._tool.search_google(query, num_results) |
|
||
@wrap_tool("agno__serpapi__search_youtube", AgnoSerpApiTools.search_youtube) | ||
def search_youtube(self, query: str) -> str: | ||
return self.search_youtube(self, query) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return self.search_youtube(self, query) | |
return self._tool.search_youtube(query) |
token=self.token_, | ||
send_message=self.send_message_, | ||
list_channels=self.list_channels_, | ||
get_channel_history=self.get_channel_history, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some are state params, so need to be exposed via pydantic fields, and some control agno tool exposure, so must be set to True
; please read tool's __init__
to see which are which
|
||
@wrap_tool("agno__slack__send_message", AgnoSlackTools.send_message) | ||
def send_message(self, channel: str, text: str) -> str: | ||
return self.send_message(self, channel, text) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return self.send_message(self, channel, text) | |
return self._tool.send_message(channel, text) |
db_url=self.db_url_, | ||
db_engine=self.db_engine_, | ||
user=self.user_, | ||
password=self.password_, | ||
host=self.host_, | ||
port=self.port_, | ||
schema=self.schema_, | ||
dialect=self.dialect_, | ||
tables=self.tables_, | ||
list_tables=self.list_tables_, | ||
describe_table=self.describe_table_, | ||
run_sql_query=self.run_sql_query_, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some are state params, so need to be exposed via pydantic fields, and some control agno tool exposure, so must be set to True
; please read tool's __init__
to see which are which
|
||
@wrap_tool("agno__sql__list_tables", AgnoSQLTools.list_tables) | ||
def list_tables(self) -> str: | ||
return self.list_tables(self) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return self.list_tables(self) | |
return self._tool.list_tables() |
|
||
@wrap_tool("agno__sql__describe_table", AgnoSQLTools.describe_table) | ||
def describe_table(self, table_name: str) -> str: | ||
return self.describe_table(self, table_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return self.describe_table(self, table_name) | |
return self._tool.describe_table(table_name) |
|
||
@wrap_tool("agno__sql__run_sql_query", AgnoSQLTools.run_sql_query) | ||
def run_sql_query(self, query: str, limit: Optional[int] = 10) -> str: | ||
return self.run_sql_query(self, query, limit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return self.run_sql_query(self, query, limit) | |
return self._tool.run_sql_query(query, limit) |
|
||
@wrap_tool("agno__sql__run_sql", AgnoSQLTools.run_sql) | ||
def run_sql(self, sql: str, limit: Optional[int] = None) -> List[dict]: | ||
return self.run_sql(self, sql, limit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return self.run_sql(self, sql, limit) | |
return self._tool.run_sql(sql, limit) |
No description provided.