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
| Parameter | Type | Description |
|---|---|---|
toolName | string | Tool name |
schemaKeys | readonly string[] | Presenter schema field names |
agentLimitMax | number | null | Maximum items from agentLimit() config |
egressMaxBytes | number | null | Maximum bytes from egressMaxBytes() config |
Returns
Static token profile with recommendations