command
Version:
v0.2.3
Opens a new window with list of versions in this module.
Published: May 6, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Example: LLM记忆提取示例
展示如何使用Extractor从对话中提取记忆
运行前请设置环境变量:
export OPENAI_API_KEY=sk-your-api-key
或使用本地模型(Ollama):
export OPENAI_BASE_URL=http://localhost:11434/v1
export OPENAI_MODEL=llama3.1:8b
export OPENAI_API_KEY=ollama
本示例展示代码直接配置LLM(无需预先存储到DB)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.