Skip to content
1 min read · 129 words

Interface: RawIdentity

Plain input object supplied to Identity at construction time.

Remarks

Validated against rawIdentitySchema before the Identity instance is created.

Properties

PropertyTypeDescription
identifierstring | numberThe system-facing identifier for this participant. Remarks Used internally to correlate messages to a specific participant — e.g. a database ID or a username. Never sent to the model directly; use representation for that.
representationstring | TokenizableHow this participant should be presented to the model. Remarks Accepts a plain string or an existing @nhtio/adk!Tokenizable instance. This is what the model sees when it needs to distinguish between participants of the same role.