SmythOS SDK
    Preparing search index...

    Type Alias ChatOptions

    type ChatOptions = {
        id?: string;
        persist?: boolean | ILLMContextStore;
    }
    Index

    Properties

    Properties

    id?: string

    The ID of the chat. If not provided, a random ID will be generated.

    If provided, it will be used to identify the chat in the storage provider and try to load the previous messages from the storage provider if the chat is not found, a new chat will be created

    persist?: boolean | ILLMContextStore

    If true, the chat will be persisted in the default SRE storage provider : next time you create a chat with the same chat ID and same agent ID, it will load the previous messages from the storage provider

    If false, the chat will not be persisted

    If a ILLMContextStore is provided, the chat will be persisted in the provided store