Request a demo
Home › Contexts
Contexts

Build and manage the context your AI runs on

A context is a governed, versioned answer to a business question: parameterised, filtered, scoped to the caller, masked and fresh. Define it once; every agent and app gets the same one.

Anatomy

What a context holds

What a context holdsA context is data, not code: the question, its parameters, whose rows a caller gets, what is masked, how fresh it is and how an agent should find it.Parameterstyped :params, bounds, enumsFilters & defaultswhat an empty value meansRow scopeowner or org, from the callerMaskingredact · hash · last4 · nullOutput columnslabels, units, personal dataFreshnesslive · TTL · nightly, SLAExample phrasingshow an agent picks itVersion & auditpinned, approved, loggedCONTEXTuw.book.renewals_dueversion 3 · publishedone read-only statement overthe tables you granted
A context is data, not code: the question, its parameters, whose rows a caller gets, what is masked, how fresh it is and how an agent should find it.
Managed in one place

Every context, its owner, its version and who calls it

Contexts live in one catalog. Each shows its owner, status, version, parameters, output columns, freshness promise and usage over the last week, so the people who own a number can see who depends on it.

  • Draft, publish, retire: a key is never reused for a different answer.
  • Publish requests wait for a curator; the change and its author are kept.
  • Callers can pin a version; breaking changes are refused unless declared.
  • Usage per context: calls, failures, distinct callers and median latency.
Contexts for a P&C carrierDemo data
Contexts for a P&C carrier: renewals, Insured 360, claims by accident year, loss development, broker performance, cat exposure and Reinsurance 360, each with its freshness, scope, masking and calls from agents
Designing a context

Six decisions that make a context safe to hand to an agent

Parameters

Declare each input with a type, a default, bounds and allowed values. Multi-value inputs are explicit. An undeclared input is refused.

Filters and defaults

Decide what an empty value means: all regions, this quarter, the caller's own book. Write it down once, in the context.

Row scope

Name the column that holds the book owner or the organization, or say public. A context has to say one of these.

Masking

Mark personal columns. Callers without a clearance role see them redacted, hashed, as the last four characters, or null.

Freshness

Live, hourly, nightly or static, with an SLA in minutes and a cache TTL. Every answer carries as_of.

Example phrasings

The sentences people use for it. An assistant matches a question to a context before writing SQL of its own, and refuses a tie.

Context as data

A context is a reviewable file, not hidden code

Contexts are JSON or YAML that sit next to your code and load into a registry at start. Review them like code; the fingerprint of the SQL, parameters and scope tells you when an answer's meaning changed.

Versioning and reviewing context like code →

sales.book.renewals_due.json
{
  "key": "sales.book.renewals_due",
  "version": 3,
  "title": "Renewals due in my book",
  "source": "snowflake_sales",
  "sql": "SELECT account_id, account_name, owner_id, org_id, renewal_date, arr_usd, health
          FROM gold.renewals
          WHERE renewal_date <= CURRENT_DATE + :days_ahead
            AND region IN (:regions)",
  "params": [
    {"name": "days_ahead", "type": "integer", "default": 90, "min": 1, "max": 365},
    {"name": "regions", "type": "string", "multi": true, "values": ["NA", "EMEA", "APAC"]}
  ],
  "columns": [
    {"name": "arr_usd", "label": "Annual value", "unit": "money"},
    {"name": "account_name", "label": "Account", "pii": false}
  ],
  "row_scope": {"owner_column": "owner_id", "org_column": "org_id"},
  "freshness": {"cadence": "live", "sla_minutes": 15},
  "cache_ttl_s": 300,
  "pii": "internal",
  "masking": {"contact_email": "hash"},
  "max_rows": 500,
  "timeout_s": 15,
  "questions": ["which renewals are due in my book", "accounts renewing next quarter"]
}

See your own context layer, on your data

Bring one source and three questions your agents or apps need answered. We will stand up governed contexts over them in your environment and connect an agent to them in a working session.

We reply within one business day. Next comes a 45-minute executive briefing for your CIO or CDO, then, if it fits, a 12-week Innovation POD in your environment.