AI SDK RSCgetAIState
getAIState
Get the current AI state.
Import
import { getAIState } from "ai/rsc"
Arguments
key?:
Returns the value of the specified key in the AI state, if it's an object.
Returns
The AI state.
getAIState
Get the current AI state.
import { getAIState } from "ai/rsc"