mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 12:07:36 +00:00
docs: Add GOAT integration to docs (#30478)
This PR adds: 1. Docs for the GOAT integration 2. An "Agentic Finance" table to the Tools page that includes GOAT **Twitter handle**: @0xaguspunk
This commit is contained in:
@@ -169,6 +169,14 @@ DATABASE_TOOL_FEAT_TABLE = {
|
||||
},
|
||||
}
|
||||
|
||||
FINANCE_TOOL_FEAT_TABLE = {
|
||||
"GOAT": {
|
||||
"link": "/docs/integrations/tools/goat",
|
||||
"pricing": "Free",
|
||||
"capabilities": "Create and receive payments, purchase physical goods, make investments, and more.",
|
||||
},
|
||||
}
|
||||
|
||||
TOOLS_TEMPLATE = """\
|
||||
---
|
||||
sidebar_position: 0
|
||||
@@ -220,6 +228,12 @@ The following table shows tools that can be used to automate tasks in databases:
|
||||
|
||||
{database_table}
|
||||
|
||||
## Finance
|
||||
|
||||
The following table shows tools that can be used to execute financial transactions such as payments, purchases, and more:
|
||||
|
||||
{finance_table}
|
||||
|
||||
## All tools
|
||||
|
||||
import {{ IndexTable }} from "@theme/FeatureTables";
|
||||
@@ -290,6 +304,22 @@ def get_database_table() -> str:
|
||||
return "\n".join(["|".join(row) for row in rows])
|
||||
|
||||
|
||||
def get_finance_table() -> str:
|
||||
"""Get the table of finance tools."""
|
||||
header = ["tool", "pricing", "capabilities"]
|
||||
title = ["Tool/Toolkit", "Pricing", "Capabilities"]
|
||||
rows = [title, [":-"] + [":-:"] * (len(title) - 1)]
|
||||
for finance_tool, feats in sorted(FINANCE_TOOL_FEAT_TABLE.items()):
|
||||
# Fields are in the order of the header
|
||||
row = [
|
||||
f"[{finance_tool}]({feats['link']})",
|
||||
]
|
||||
for h in header[1:]:
|
||||
row.append(feats.get(h))
|
||||
rows.append(row)
|
||||
return "\n".join(["|".join(row) for row in rows])
|
||||
|
||||
|
||||
def get_search_tools_table() -> str:
|
||||
"""Get the table of search tools."""
|
||||
header = ["tool", "pricing", "available_data"]
|
||||
@@ -355,6 +385,7 @@ if __name__ == "__main__":
|
||||
productivity_table=get_productivity_table(),
|
||||
webbrowsing_table=get_webbrowsing_table(),
|
||||
database_table=get_database_table(),
|
||||
finance_table=get_finance_table(),
|
||||
)
|
||||
with open(output_integrations_dir / "tools" / "index.mdx", "w") as f:
|
||||
f.write(tools_page)
|
||||
|
Reference in New Issue
Block a user