FileInfoTool
org.llm4s.toolapi.builtin.filesystem.FileInfoTool
object FileInfoTool
Tool for getting detailed file information.
Features:
- File metadata (size, timestamps)
- File type detection
- Permission checks
- Human-readable size formatting
Attributes
- Example
-
import org.llm4s.toolapi.builtin.filesystem._ val infoTool = FileInfoTool.create(FileConfig( allowedPaths = Some(Seq("/tmp")) )) val tools = new ToolRegistry(Seq(infoTool)) agent.run("Get info about /tmp/data.txt", tools) - Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FileInfoTool.type
Members list
In this article