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 Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def create(config: FileConfig): ToolFunction[Map[String, Any], FileInfoResult]

Create a file info tool with the given configuration.

Create a file info tool with the given configuration.

Attributes

Concrete fields

val tool: ToolFunction[Map[String, Any], FileInfoResult]

Default file info tool with standard configuration.

Default file info tool with standard configuration.

Attributes