QuotaPartitionSelector(IAgentExecutionContext)
NexusLabs.Needlr.AgentFramework¶
NexusLabs.Needlr.AgentFramework.Providers¶
QuotaPartitionSelector(IAgentExecutionContext) Delegate¶
Extracts the quota partition key from the current execution context. Used by TieredProviderSelector<TQuery,TResult> to scope quota to the ambient user/tenant without explicit passing at every call site.
public delegate string? QuotaPartitionSelector(NexusLabs.Needlr.AgentFramework.Context.IAgentExecutionContext? context);
Parameters¶
context IAgentExecutionContext
The current execution context, or null if outside a scope.
Returns¶
System.String
The partition key, or null for global quota.