generateId
Generates a unique identifier.
This is the same id generator used by the AI SDK.
Import
import { generateId } from "ai"
API Signature
Returns
A string representing the generated ID.
Generates a unique identifier.
This is the same id generator used by the AI SDK.
import { generateId } from 'ai';
const id = generateId();import { generateId } from "ai"
A string representing the generated ID.