create

abstract suspend fun create(parent: Path, name: String, type: FileMetadata.FileType)(source)

Creates a new file or directory within a specified parent directory.

Parameters

parent

The path of the parent directory where the item will be created.

name

The name of the new file or directory to be created.

type

The type of the item to create, either a file or a directory, as defined by ai.koog.agents.memory.providers.FileMetadata.FileType.