mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-13 14:15:52 +00:00
Rename the Artifact tool and shorten the new tools' descriptions
Rename the Artifact Generator display name to "Artifact" (the internal artifact_generator key is unchanged) and tighten the user-facing one-line descriptions for Code Executor, Artifact, and Read Document.
This commit is contained in:
1 parent
636f299e67
commit
8b3db5eab9
3 files changed
+4
-4
No files matched your search
@@ -377,8 +377,8 @@ def merge_patch(target: Any, patch: Any) -> Any:
|
||||
|
||||
|
||||
class ArtifactGeneratorTool(Tool):
|
||||
"""Artifact Generator
|
||||
Render editable documents (presentation/document/spreadsheet/pdf/html) from a JSON spec and version them.
|
||||
"""Artifact
|
||||
Create, edit, and version documents - slides, docs, sheets, PDF, HTML.
|
||||
"""
|
||||
|
||||
def __init__(self, tool_config: Optional[Dict[str, Any]] = None, user_id: Optional[str] = None) -> None:
|
||||
|
||||
@@ -54,7 +54,7 @@ def _tail(stream: Optional[str]) -> str:
|
||||
|
||||
class CodeExecutorTool(Tool):
|
||||
"""Code Executor
|
||||
Run Python (or other) code in a sandboxed, semi-persistent session and capture produced files as artifacts.
|
||||
Run code in a sandboxed session; files it writes become downloadable artifacts.
|
||||
"""
|
||||
|
||||
def __init__(self, tool_config: Optional[Dict[str, Any]] = None, user_id: Optional[str] = None) -> None:
|
||||
|
||||
@@ -39,7 +39,7 @@ except Exception: # pragma: no cover - jsonschema is a declared dependency
|
||||
|
||||
class ReadDocumentTool(Tool):
|
||||
"""Read Document
|
||||
Parse an input document artifact (pdf/docx/pptx/...) to text/markdown/structured JSON via the backend parser.
|
||||
Parse a document (PDF, Word, PowerPoint, ...) to text, markdown, or structured data.
|
||||
"""
|
||||
|
||||
# Hidden from the Add-Tool catalog; surfaced (workflow-only) via the
|
||||
|
||||
Reference in new issue
Block a user