Skip to content
1 min read · 141 words

Interface: RawIdentity

Defined in: lib/classes/identity.ts:13

Plain input object supplied to Identity at construction time.

Remarks

Validated against rawIdentitySchema before the Identity instance is created.

Properties

PropertyTypeDescriptionDefined in
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.lib/classes/identity.ts:21
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.lib/classes/identity.ts:29