agentskit.js

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

QuotaTracker

#runIdFor?

(context) => string

#Returns

ToolDefinition<Record<string, unknown>>[]

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page