@elizaos/core v1.0.0-beta.7 / trimTokens
Function: trimTokens()
trimTokens(
prompt
,maxTokens
,runtime
):Promise
<string
>
Trims the provided text prompt to a specified token limit using a tokenizer model and type.
Parameters
• prompt: string
• maxTokens: number
• runtime: IAgentRuntime
Returns
Promise
<string
>