Table of Contents

Property CacheTtl

Namespace
LMKit.Agents.Tools.BuiltIn.Net
Assembly
LM-Kit.NET.dll

CacheTtl

Gets or sets how long a completed search may answer an identical request (same provider, query, result count, and freshness window) from memory instead of re-querying the provider. Default is 5 minutes; Zero disables caching.

Agents commonly retry or loop around the same query, and the keyless DuckDuckGo endpoint rate-limits aggressively, so a short cache both speeds agent loops and protects access.

public TimeSpan CacheTtl { get; set; }

Property Value

TimeSpan
Share