mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-27 17:08:47 +00:00
docs: add self-hosting row to code interpreter tools table (#25303)
**Description:** Add information about self-hosting support to the code interpreter tools table. **Issue:** N/A **Dependencies:** N/A
This commit is contained in:
parent
83327ac43a
commit
c410545075
@ -71,6 +71,7 @@ CODE_INTERPRETER_TOOL_FEAT_TABLE = {
|
|||||||
"upload": True,
|
"upload": True,
|
||||||
"return_results": "Text",
|
"return_results": "Text",
|
||||||
"link": "/docs/integrations/tools/bearly",
|
"link": "/docs/integrations/tools/bearly",
|
||||||
|
"self_hosting": False,
|
||||||
},
|
},
|
||||||
"Riza Code Interpreter": {
|
"Riza Code Interpreter": {
|
||||||
"langauges": "Python, JavaScript, PHP, Ruby",
|
"langauges": "Python, JavaScript, PHP, Ruby",
|
||||||
@ -78,6 +79,7 @@ CODE_INTERPRETER_TOOL_FEAT_TABLE = {
|
|||||||
"upload": False,
|
"upload": False,
|
||||||
"return_results": "Text",
|
"return_results": "Text",
|
||||||
"link": "/docs/integrations/tools/riza",
|
"link": "/docs/integrations/tools/riza",
|
||||||
|
"self_hosting": True,
|
||||||
},
|
},
|
||||||
"E2B Data Analysis": {
|
"E2B Data Analysis": {
|
||||||
"langauges": "Python. In beta: JavaScript, R, Java",
|
"langauges": "Python. In beta: JavaScript, R, Java",
|
||||||
@ -85,6 +87,7 @@ CODE_INTERPRETER_TOOL_FEAT_TABLE = {
|
|||||||
"upload": True,
|
"upload": True,
|
||||||
"return_results": "Text, Images, Videos",
|
"return_results": "Text, Images, Videos",
|
||||||
"link": "/docs/integrations/tools/e2b_data_analysis",
|
"link": "/docs/integrations/tools/e2b_data_analysis",
|
||||||
|
"self_hosting": True,
|
||||||
},
|
},
|
||||||
"Azure Container Apps dynamic sessions": {
|
"Azure Container Apps dynamic sessions": {
|
||||||
"langauges": "Python",
|
"langauges": "Python",
|
||||||
@ -92,6 +95,7 @@ CODE_INTERPRETER_TOOL_FEAT_TABLE = {
|
|||||||
"upload": True,
|
"upload": True,
|
||||||
"return_results": "Text, Images",
|
"return_results": "Text, Images",
|
||||||
"link": "/docs/integrations/tools/azure_dynamic_sessions",
|
"link": "/docs/integrations/tools/azure_dynamic_sessions",
|
||||||
|
"self_hosting": False,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -301,13 +305,14 @@ def get_search_tools_table() -> str:
|
|||||||
|
|
||||||
|
|
||||||
def get_code_interpreter_table() -> str:
|
def get_code_interpreter_table() -> str:
|
||||||
"""Get the table of search tools."""
|
"""Get the table of code interpreter tools."""
|
||||||
header = [
|
header = [
|
||||||
"tool",
|
"tool",
|
||||||
"langauges",
|
"langauges",
|
||||||
"sandbox_lifetime",
|
"sandbox_lifetime",
|
||||||
"upload",
|
"upload",
|
||||||
"return_results",
|
"return_results",
|
||||||
|
"self_hosting",
|
||||||
]
|
]
|
||||||
title = [
|
title = [
|
||||||
"Tool/Toolkit",
|
"Tool/Toolkit",
|
||||||
@ -315,6 +320,7 @@ def get_code_interpreter_table() -> str:
|
|||||||
"Sandbox Lifetime",
|
"Sandbox Lifetime",
|
||||||
"Supports File Uploads",
|
"Supports File Uploads",
|
||||||
"Return Types",
|
"Return Types",
|
||||||
|
"Supports Self-Hosting",
|
||||||
]
|
]
|
||||||
rows = [title, [":-"] + [":-:"] * (len(title) - 1)]
|
rows = [title, [":-"] + [":-:"] * (len(title) - 1)]
|
||||||
for search_tool, feats in sorted(CODE_INTERPRETER_TOOL_FEAT_TABLE.items()):
|
for search_tool, feats in sorted(CODE_INTERPRETER_TOOL_FEAT_TABLE.items()):
|
||||||
@ -324,7 +330,7 @@ def get_code_interpreter_table() -> str:
|
|||||||
]
|
]
|
||||||
for h in header[1:]:
|
for h in header[1:]:
|
||||||
value = feats.get(h)
|
value = feats.get(h)
|
||||||
if h == "upload":
|
if h == "upload" or h == "self_hosting":
|
||||||
if value is True:
|
if value is True:
|
||||||
row.append("✅")
|
row.append("✅")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user