Vladyslav Khaitov commited on
Commit
1f15ff8
·
1 Parent(s): e398a84

Remove extra empty line in tools description

Browse files
tools/audio_inspector_tool.py CHANGED
@@ -11,8 +11,7 @@ from smolagents.models import Model, ChatMessage
11
 
12
  class AudioInspectorTool(Tool):
13
  name = "inspect_audio"
14
- description = """
15
- A tool that can answer questions about attached audio files. Use this tool when you need to analyze or describe audio content.
16
  This tool handles various audio formats and can provide detailed descriptions or answer specific questions about audio content.
17
  """
18
 
 
11
 
12
  class AudioInspectorTool(Tool):
13
  name = "inspect_audio"
14
+ description = """A tool that can answer questions about attached audio files. Use this tool when you need to analyze or describe audio content.
 
15
  This tool handles various audio formats and can provide detailed descriptions or answer specific questions about audio content.
16
  """
17
 
tools/image_inspector_tool.py CHANGED
@@ -71,8 +71,7 @@ from smolagents.models import Model, MessageRole, ChatMessage
71
 
72
  class ImageInspectorTool(Tool):
73
  name = "inspect_image"
74
- description = """
75
- A tool that can answer questions about attached images. Use this tool when you need to analyze or describe images.
76
  This tool handles various image formats and can provide detailed descriptions or answer specific questions about image content.
77
  """
78
 
 
71
 
72
  class ImageInspectorTool(Tool):
73
  name = "inspect_image"
74
+ description = """A tool that can answer questions about attached images. Use this tool when you need to analyze or describe images.
 
75
  This tool handles various image formats and can provide detailed descriptions or answer specific questions about image content.
76
  """
77
 
tools/text_file_inspector_tool.py CHANGED
@@ -5,8 +5,7 @@ from smolagents.models import Model, ChatMessage
5
 
6
  class TextFileInspectorTool(Tool):
7
  name = "inspect_file_as_text"
8
- description = """
9
- You cannot load files yourself: instead call this tool to read a file as markdown text and ask questions about it.
10
  This tool handles the following file extensions: [".html", ".htm", ".xlsx", ".txt", ".pptx", ".pdf", ".docx"], and all other types of text files. IT DOES NOT HANDLE IMAGES OR AUDIO."""
11
 
12
  inputs = {
 
5
 
6
  class TextFileInspectorTool(Tool):
7
  name = "inspect_file_as_text"
8
+ description = """You cannot load files yourself: instead call this tool to read a file as markdown text and ask questions about it.
 
9
  This tool handles the following file extensions: [".html", ".htm", ".xlsx", ".txt", ".pptx", ".pdf", ".docx"], and all other types of text files. IT DOES NOT HANDLE IMAGES OR AUDIO."""
10
 
11
  inputs = {
tools/youtube_video_inspector_tool.py CHANGED
@@ -12,9 +12,7 @@ import os
12
 
13
  class YouTubeVideoInspectorTool(Tool):
14
  name = "inspect_youtube_video"
15
- description = """
16
- A tool to inspect YouTube videos by URL. It extracts the video title, metadata, description, and transcript (if available), and can answer questions about the video content. Use this tool for YouTube video URLs only. It does not handle playlists or non-YouTube URLs.
17
- """
18
 
19
  inputs = {
20
  "youtube_url": {
 
12
 
13
  class YouTubeVideoInspectorTool(Tool):
14
  name = "inspect_youtube_video"
15
+ description = """A tool to inspect YouTube videos by URL. It extracts the video title, metadata, description, and transcript (if available), and can answer questions about the video content. Use this tool for YouTube video URLs only. It does not handle playlists or non-YouTube URLs."""
 
 
16
 
17
  inputs = {
18
  "youtube_url": {