Skip to main content
Foundry is the part of Tilde Cloud where you build on your business data. At its core is the ontology: a typed model of your business, defined in TypeScript. It joins the data from your systems into objects, such as customers and invoices, and exposes reads and actions over them. Agents call those reads and actions as tools. People use them through spaces. Cedar policies in the same project decide who may do what.

When to use Foundry

Use Foundry when agents need to read or change business data that lives in several systems, and people need to see and control what they do. Instead of holding database credentials or calling ten APIs, the agent sees a small set of typed tools, such as customerOverview or creditCustomer, and each call is checked against your policies. Your data flows through models and objects into reads and actions, which agents and people call under Cedar policies
Click to zoom
  • Agents get every read and action as a tool through the Tilde Foundry tool provider. See Give an agent the ontology.
  • People open spaces in Live, which call the same reads and actions.
  • Policies see both the person and the agent acting for them. An agent never does more than the person it serves.

The building blocks

  • Pipelines and models bring raw records in and shape them with SQL. See Sources and models.
  • Objects and links are the typed nouns and their relationships. See Objects and links.
  • Views, reads, and actions are the typed handlers that agents and spaces call. See Views and actions.
  • Policies are Cedar rules that decide every call. See Policies.
  • Spaces are React pages fed only by the ontology. See Spaces.
  • Projects and environments are the repository you deploy, and where it runs. See Deploy and environments.

Where an ontology lives

An ontology is a folder in ontologies/ of a Tilde project, such as ontologies/crm/, with its spaces in ontologies/crm/spaces/. You write it in TypeScript with @trytilde/ontology. ontology.ts default-exports ontology({ ... }), which lists the objects, views, reads, actions, pipelines, connections, and policies. The ontology walks through a complete one. Foundry runs only on Tilde Cloud. tilde deploy builds them on your machine or in CI, and Tilde Cloud deploys what it uploads. See Deploy and environments.

Next steps

Create your first project

Build, deploy, and connect an ontology, a space, and an agent.

Sources and models

Bring data in, and shape it with SQL.