Function: isBankId()
isBankId(
s): s is "WORLD" | "EXPERIENCE" | "OPINION" | "OBSERVATION"
Defined in: packages/agentos/src/memory/retrieval/typed-network/types.ts:36
Type guard: narrows an arbitrary string to BankId. Use to validate untrusted inputs (LLM extraction output, deserialized persistence) before routing into the typed network.
Parameters
s
string
Returns
s is "WORLD" | "EXPERIENCE" | "OPINION" | "OBSERVATION"