Table of Contents

Property SizeBytes

Namespace
LMKit.Agents.Skills
Assembly
LM-Kit.NET.dll

SizeBytes

Gets the size of the resource file in bytes, read from the file system without loading the content, or -1 when the file cannot be inspected.

public long SizeBytes { get; }

Property Value

long

Examples

Reading a resource size without loading its content:

var resource = skill.GetResource("references/API.md");
Console.WriteLine($"{resource.SizeBytes} bytes");
Console.WriteLine(resource.IsContentLoaded); // still false
Share