lailaelkoussy commited on
Commit
c69669a
·
1 Parent(s): 0b87d9a

update docstrings wording

Browse files
Files changed (1) hide show
  1. gradio_mcp_space.py +6 -6
gradio_mcp_space.py CHANGED
@@ -1262,9 +1262,9 @@ def get_file_stats(path: str) -> str:
1262
  @observe(as_type="tool")
1263
  def find_path(source_id: str, target_id: str, max_depth: int = 5) -> str:
1264
  """
1265
- Find the shortest path between two nodes in the knowledge graph.
1266
 
1267
- Uses graph traversal to find connections between nodes.
1268
 
1269
  Args:
1270
  source_id: The ID of the source node
@@ -1467,13 +1467,13 @@ def list_files_in_directory(directory_path: str = "", pattern: str = "*", recurs
1467
  @observe(as_type="tool")
1468
  def find_classes_inheriting_from(base_class_name: str, limit: int = 20) -> str:
1469
  """
1470
- Find all classes that inherit from a given base class.
1471
 
1472
  Searches the knowledge graph for class entities that have the specified
1473
  base class in their inheritance chain.
1474
 
1475
  Args:
1476
- base_class_name: The name of the base class to find subclasses of
1477
  limit: Maximum number of results to return (default: 20)
1478
 
1479
  Returns:
@@ -1568,12 +1568,12 @@ def find_classes_inheriting_from(base_class_name: str, limit: int = 20) -> str:
1568
  @observe(as_type="tool")
1569
  def find_files_importing(module_or_entity: str, limit: int = 30) -> str:
1570
  """
1571
- Find all files that import a specific module or entity.
1572
 
1573
  Searches for import statements and usage patterns across the codebase.
1574
 
1575
  Args:
1576
- module_or_entity: The name of the module or entity to find imports of
1577
  limit: Maximum number of results to return (default: 30)
1578
 
1579
  Returns:
 
1262
  @observe(as_type="tool")
1263
  def find_path(source_id: str, target_id: str, max_depth: int = 5) -> str:
1264
  """
1265
+ Retrieve the shortest path between two nodes in the knowledge graph.
1266
 
1267
+ Uses graph traversal to retrieve connections between nodes.
1268
 
1269
  Args:
1270
  source_id: The ID of the source node
 
1467
  @observe(as_type="tool")
1468
  def find_classes_inheriting_from(base_class_name: str, limit: int = 20) -> str:
1469
  """
1470
+ Retrieve all classes that inherit from a given base class.
1471
 
1472
  Searches the knowledge graph for class entities that have the specified
1473
  base class in their inheritance chain.
1474
 
1475
  Args:
1476
+ base_class_name: The name of the base class to retrieve subclasses of
1477
  limit: Maximum number of results to return (default: 20)
1478
 
1479
  Returns:
 
1568
  @observe(as_type="tool")
1569
  def find_files_importing(module_or_entity: str, limit: int = 30) -> str:
1570
  """
1571
+ Retrieve all files that import a specific module or entity.
1572
 
1573
  Searches for import statements and usage patterns across the codebase.
1574
 
1575
  Args:
1576
+ module_or_entity: The name of the module or entity to retrieve imports of
1577
  limit: Maximum number of results to return (default: 30)
1578
 
1579
  Returns: