Skip to main content

What are Trait Schemas?

Trait schemas define the structure and extraction rules for user traits. They tell GetProfile:
  • What traits to look for
  • How to extract them
  • How to inject them into prompts

Schema Structure

Default Schema

GetProfile ships with a default schema at config/traits/default.traits.json:

Custom Schemas

Create domain-specific schemas for your use case:

Per-Request Overrides

Define traits dynamically for specific requests:
Per-request traits completely replace system traits when provided (no merging). This gives full control per request.

Extraction Configuration

Injection Configuration