Skip to content

Function: computeStaticProfile()

ts
function computeStaticProfile(
   toolName, 
   schemaKeys, 
   agentLimitMax, 
   egressMaxBytes): StaticTokenProfile;

Defined in: packages/core/src/introspection/TokenEconomics.ts:262

Compute a static token profile from Presenter metadata.

This runs once at manifest compilation time and produces a zero-cost profile that estimates the worst-case token usage for a tool based on its schema and guardrail config.

Parameters

ParameterTypeDescription
toolNamestringTool name
schemaKeysreadonly string[]Presenter schema field names
agentLimitMaxnumber | nullMaximum items from agentLimit() config
egressMaxBytesnumber | nullMaximum bytes from egressMaxBytes() config

Returns

StaticTokenProfile

Static token profile with recommendations