Table of Contents

Method Truncate

Namespace
Oscova.Agents.Utils
Assembly
Oscova.Agents.dll

Truncate(string, int)

Keeps leading lines until the approximate token budget is exhausted.

public static string Truncate(string content, int tokenBudget)

Parameters

content string
tokenBudget int

Returns

string