Capability catalogue
slainternal
sla.compute
Compute first-response + resolution SLA state for a thread
Compute the current SLA state for a thread using the tenant's SLA policies. Platform-shipped generic computation — any inbox-producing agent benefits. v1 uses a tenant-wide default policy; per-channel + per-tier policies land in a follow-up.
Effect
internal Fanout
no
Cache TTL
none
Traits
none
Request arguments
Passed as the args parameter to ctx.capability.call("sla.compute", …).
| Field | Type | Required | Description |
|---|---|---|---|
| threadId | string | yes | format: uuid |
Response
Returned by ctx.capability.call("sla.compute", …).
| Field | Type | Required | Description |
|---|---|---|---|
| state | string | yes | enum: ["met","at_risk","breached","not_applicable"] |
| appliedPolicy | string | no | Human-readable name of the policy that matched (e.g. 'VIP customer — 2h FRT') |
| resolutionDueAt | string | no | format: date-time |
| resolutionMetAt | string | no | format: date-time |
| firstResponseDueAt | string | no | format: date-time |
| firstResponseMetAt | string | no | format: date-time |
Example call
From inside your agent's handle(). The kernel resolves sla.compute to the tenant's connector binding at invocation time.
response = await ctx.capability.call(
"sla.compute",
args={
"threadId": "...",
},
)See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.