• Sets the state of a conversation in presistent storage. If the conversation does not exist, it will be created.

    Type Parameters

    • Schema = Record<string, any>

      The type of the state object, defaults to JSONAbleObject.

    Parameters

    • conversationId: string

      The unique identifier of the conversation.

    • state: Schema

      The state object to be set for the conversation.

    Returns Promise<void>

    A promise that resolves when the state has been set.