metadata

abstract suspend fun metadata(path: Path): FileMetadata?(source)

Retrieves the metadata associated with the specified file or directory.

Return

The metadata of the specified file or directory as a ai.koog.agents.memory.providers.FileMetadata object, or null if the metadata could not be retrieved or the path does not exist.

Parameters

path

The path to the file or directory whose metadata is being retrieved.