ChatHistoryReset
Python template · sinapsis_chat_history.templates.chat_history_reset
Overview
Reset chat history storage by dropping and recreating the table.
Warning: This is a destructive operation that permanently erases all chat history for the configured backend table.
Capabilities
Capabilities: not setInstallation
Install the published package using pip or uv.
Terminalbash
pip install sinapsis-chat-history==1.0.0uv pip install sinapsis-chat-history==1.0.0uv add sinapsis-chat-history==1.0.0Configuration
Effective fields from the inspector schema, including nested Pydantic model fields.
metadata
sinapsis_core.template_base.base_models.TemplateMetadata | None
Optional
Default: null
Optional
Default: null
provider
The storage backend to use.
typing.Literal['postgres', 'sqlite', 'supabase']
Optional
Default: "sqlite"
Optional
Default: "sqlite"
db_config
Raw provider configuration dictionary.
dict[str, typing.Any]
Optional
Default: null
Optional
Default: null
Configuration example
Example from the Python docstring:
yaml
agent:
name: my_test_agent
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: ChatHistoryReset
class_name: ChatHistoryReset
template_input: InputTemplate
attributes:
provider: sqlite
db_config:
db_path: "chat_history.sqlite3"
table: "chat"Show schema-based configuration skeleton
yaml
templates:
- template_name: "ChatHistoryReset"
class_name: "ChatHistoryReset"
attributes:
provider: "sqlite"
db_config: null
Inheritance
Immediate parent:
sinapsis_chat_history.templates.chat_history_base.ChatHistoryBaseEnvironment variables
Environment definitions belong to their canonical Python modules.
No directly related environment variables listed.