withQuotas
Auto-generated API reference for withQuotas.
Function: withQuotas()
withQuotas(
tools,tracker,runIdFor?):ToolDefinition<Record<string,unknown>>[]
Defined in: quota.ts:185
Wrap a list of tools so every execute call is gated by the quota
tracker. Drop-in replacement for the raw tool array passed to
createRuntime(\{ tools \}).
#Parameters
#tools
ToolDefinition<Record<string, unknown>>[]
#tracker
#runIdFor?
(context) => string
#Returns
ToolDefinition<Record<string, unknown>>[]