CachingAgentSkillsSourceOptions.CacheIsolationKeySelector Property

Definition

Gets or sets a delegate that returns the cache isolation key for a skills source invocation.

public Func<Microsoft.Agents.AI.AgentSkillsSourceContext,string?>? CacheIsolationKeySelector { get; set; }
member this.CacheIsolationKeySelector : Func<Microsoft.Agents.AI.AgentSkillsSourceContext, string> with get, set
Public Property CacheIsolationKeySelector As Func(Of AgentSkillsSourceContext, String)

Property Value

Remarks

When this delegate is null, or when it returns null, the skills are stored in the shared cache bucket. When it returns a non-null string, the skills are cached under that key.

The isolation key should be low-cardinality and stable. High-cardinality keys (for example, per-session IDs) can cause the cache to grow without bound.

Applies to