pangukitsappdev.api.memory package

Subpackages

Submodules

pangukitsappdev.api.memory.message_history_config module

class pangukitsappdev.api.memory.message_history_config.MessageHistoryConfig(_env_file: Optional[Union[str, PathLike, List[Union[str, PathLike]], Tuple[Union[str, PathLike], ...]]] = '<object object>', _env_file_encoding: Optional[str] = None, _env_nested_delimiter: Optional[str] = None, _secrets_dir: Optional[Union[str, PathLike]] = None, *, store_name: Optional[str] = None, server_info: ServerInfo = None, key_prefix: str = 'message_store:', table_name: str = 'tbl_chat_message_history', ttl: int = 86400, session_tag: str = '')

基类:SdkBaseSettings

缓存存储的相关配置 Attributes:

store_name: 存储名称 server_info: ServerInfo,存储服务器连接相关信息,默认使用redis的连接 key_prefix: redis key前缀 table_name: sql 表名称 ttl: 缓存的老化时间,单位 秒 session_tag: 用户指定history会话标志

key_prefix: str
server_info: ServerInfo
session_tag: str
store_name: Optional[str]
table_name: str
ttl: int

Module contents