mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-05 04:55:14 +00:00
community: toolkits
docstrings (#23286)
Added missed docstrings. Formatted docstrings to the consistent form. --------- Co-authored-by: ccurme <chester.curme@gmail.com>
This commit is contained in:
@@ -13,7 +13,11 @@ from langchain_community.utilities.polygon import PolygonAPIWrapper
|
||||
|
||||
|
||||
class PolygonToolkit(BaseToolkit):
|
||||
"""Polygon Toolkit."""
|
||||
"""Polygon Toolkit.
|
||||
|
||||
Parameters:
|
||||
tools: List[BaseTool]. The tools in the toolkit.
|
||||
"""
|
||||
|
||||
tools: List[BaseTool] = []
|
||||
|
||||
@@ -21,6 +25,14 @@ class PolygonToolkit(BaseToolkit):
|
||||
def from_polygon_api_wrapper(
|
||||
cls, polygon_api_wrapper: PolygonAPIWrapper
|
||||
) -> "PolygonToolkit":
|
||||
"""Create a Polygon Toolkit from a Polygon API Wrapper.
|
||||
|
||||
Args:
|
||||
polygon_api_wrapper: PolygonAPIWrapper. The Polygon API Wrapper.
|
||||
|
||||
Returns:
|
||||
PolygonToolkit. The Polygon Toolkit.
|
||||
"""
|
||||
tools = [
|
||||
PolygonAggregates(
|
||||
api_wrapper=polygon_api_wrapper,
|
||||
|
Reference in New Issue
Block a user