| permalink | /18-integration-guide.html |
|---|---|
| title | Integration Guide |
Integrate FACET as a deterministic request-construction layer in an existing AI stack.
- store
.facetcontracts in repo - run
facet-fct buildin CI - run
facet-fct testfor contract tests - run
facet-fct runat execution time with runtime input JSON - pass canonical JSON to provider adapter
- input: facet file + runtime input JSON
- output: canonical JSON (
metadata/tools/messages) - optional output: execution artifact for audit
- treat canonical JSON as the boundary object
- keep provider-specific settings outside FACET syntax unless represented as host extensions
- keep policy in
@policyand enforce via guard path - log
document_hash+policy_hashwith downstream request ids
facet-fct build --input contracts/main.facet
facet-fct test --input contracts/main.facet --output summary --purefacet-fct run --input contracts/main.facet --runtime-input runtime.json --format json --exec