Skip to content
Konstera
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", …).

FieldTypeRequiredDescription
threadIdstringyes
format: uuid

Response

Returned by ctx.capability.call("sla.compute", …).

FieldTypeRequiredDescription
statestringyes
enum: ["met","at_risk","breached","not_applicable"]
appliedPolicystringnoHuman-readable name of the policy that matched (e.g. 'VIP customer — 2h FRT')
resolutionDueAtstringno
format: date-time
resolutionMetAtstringno
format: date-time
firstResponseDueAtstringno
format: date-time
firstResponseMetAtstringno
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.