rulvar API reference / @rulvar/rulvar / AgentProfile
Interface: AgentProfile
Defined in: packages/core/dist/index.d.ts
The canonical, complete AgentProfile shape; M1 honors description, model, routing, effort, limits, and estCost. A profile never carries a prompt or a schema.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
compaction? | { threshold?: number; } | Per-profile compaction threshold; default 0.8 of the loop model's contextWindow (M4-T03). Compaction is ON by default; history-processor plumbing stays engine-internal. | packages/core/dist/index.d.ts |
compaction.threshold? | number | - | packages/core/dist/index.d.ts |
description? | string | - | packages/core/dist/index.d.ts |
effort? | Effort | - | packages/core/dist/index.d.ts |
escalation? | EscalationOptions | Flavor B opt-in lives here or on the call. | packages/core/dist/index.d.ts |
estCost? | number | Admission reserve hint in USD (budget layer 1). | packages/core/dist/index.d.ts |
isolation? | IsolationSpec | Isolation default; the RESOLVED value enters identity. | packages/core/dist/index.d.ts |
limits? | UsageLimits | - | packages/core/dist/index.d.ts |
model? | ModelSpec | - | packages/core/dist/index.d.ts |
permissions? | AgentProfilePermissions | Chain layers merged over engine defaults. | packages/core/dist/index.d.ts |
retry? | RetryPolicy | Transport RetryPolicy layer: call over profile over engine (M4-T05). | packages/core/dist/index.d.ts |
routing? | Partial<Record<InvocationRole, ModelSpec>> | - | packages/core/dist/index.d.ts |
taskClass? | string | Declared task class bridging ModelKnowledge; default unclassified (M4-T09). | packages/core/dist/index.d.ts |
tools? | ToolsOption | Toolset default; the resolved snapshot enters identity via toolsetHash. | packages/core/dist/index.d.ts |