This document lists all bugs found while testing the examples and the fixes applied.
| Category | Bug | Status | File(s) |
|---|---|---|---|
| Import Path | SDK path hardcoded | ✅ Fixed | comprehensive_harness.py |
| Import Style | Relative imports in standalone scripts | ✅ Fixed | Multiple files |
| Config | Wrong environment variable name | ✅ Fixed | autogen_agent_with_toondb.py |
| External Dep | pyautogen strips dots from deployment names | N/A | |
| Missing Module | ContextQuery/DeduplicationStrategy not in SDK | ❌ SDK Gap | demos/1_support_agent/ |
| Missing Module | metrics_collector module not found | ❌ Not Fixed | toondb_support_chatbot.py |
| Server Dep | Some demos require sochdb-server | ⏭️ Skipped | demos/2_incident_response/ |
File: comprehensive_harness.py
Problem: The harness file added the local SDK path to sys.path, causing it to use the development version instead of pip-installed version:
# OLD CODE (BROKEN)
sdk_path = Path(__file__).parent.parent / "sochdb-python-sdk" / "src"
sys.path.insert(0, str(sdk_path))Fix Applied: Removed the SDK path insertion, using pip-installed sochdb:
# NEW CODE (FIXED)
# Using sochdb from pip install (not local SDK path)
from sochdb import DatabaseSeveral examples used relative imports (e.g., from .config import ...) but were meant to be run as standalone scripts.
Files Fixed:
context_builder/runner.pylanggraph/agent_with_toondb.pylanggraph/memory.pylanggraph/checkpointer.pyecommerce_simulation/main.pyecommerce_simulation/data_gen.pyecommerce_simulation/db_ops.pyfintech_simulation/main.py
Fix Applied: Changed relative imports to absolute imports:
# OLD CODE (BROKEN)
from .config import get_azure_config
# NEW CODE (FIXED)
from config import get_azure_configFile: complete_examples/autogen_agent_with_toondb.py
Problem: Used AZURE_OPENAI_DEPLOYMENT but the .env file defines AZURE_OPENAI_CHAT_DEPLOYMENT:
# OLD CODE
"model": os.getenv("AZURE_OPENAI_DEPLOYMENT"),Fix Applied:
# NEW CODE
"model": os.getenv("AZURE_OPENAI_CHAT_DEPLOYMENT", os.getenv("AZURE_OPENAI_DEPLOYMENT")),File: complete_examples/autogen_agent_with_toondb.py
Problem: pyautogen library (both 0.2.x and 0.9.x) has code that strips dots from Azure deployment names:
# In pyautogen source (client.py):
openai_config["azure_deployment"] = openai_config["azure_deployment"].replace(".", "")This means if your Azure deployment is named gpt-4.1, it becomes gpt41 which doesn't exist.
Workaround:
- Create Azure deployments without dots in the name (e.g.,
gpt-4-turboinstead ofgpt-4.1) - Or use a different version of pyautogen
Status: Not fixed in examples - this is a pyautogen library issue.
Files Affected:
demos/1_support_agent/agent.py
Problem: The demo imports features that don't exist in the current SDK:
from sochdb import Database, ContextQuery, DeduplicationStrategyThese appear to be planned features that aren't yet implemented.
Status: Cannot run these demos until SDK is updated.
File: toondb_support_chatbot.py
Problem: The script imports a module that doesn't exist:
from metrics_collector import MetricsCollectorStatus: Not fixed - missing dependency file.
Files Affected:
demos/2_incident_response/(all files)demos/3_analytics_copilot/(all files)
Problem: These demos require a running sochdb-server which is a separate component.
Status: Skipped - requires external server setup.
| Example | Notes |
|---|---|
quickstart_example.py |
Works perfectly |
comprehensive_harness.py |
All 10 scenarios run |
agent_memory/main.py |
Real LLM integration works |
azure_openai/runner.py |
Vector search + TOON format |
complete_examples/chat_history_memory.py |
✅ |
complete_examples/graph_example.py |
✅ |
complete_examples/langgraph_agent_with_toondb.py |
Interactive mode |
complete_examples/advanced_travel.py |
Not tested |
context_builder/runner.py |
✅ After fix |
ecommerce/runner.py |
✅ (data file optional) |
ecommerce_simulation/main.py |
✅ After fix |
fintech_simulation/main.py |
✅ After fix |
langgraph/agent_with_toondb.py |
✅ After fix |
podcast/runner.py |
✅ (data file optional) |
rag/demo.py |
Full RAG pipeline works |
rag/main.py |
CLI interface works |
wizard_of_oz/runner.py |
✅ (data file optional) |
zep/toondb_simple.py |
✅ |
zep/toondb_user_management.py |
✅ |
zep/toondb_entities.py |
✅ |
| Example | Issue |
|---|---|
complete_examples/autogen_agent_with_toondb.py |
pyautogen strips dots from deployment name |
toondb_support_chatbot.py |
Missing metrics_collector module |
| Example | Reason |
|---|---|
demos/1_support_agent/ |
Missing SDK features (ContextQuery) |
demos/2_incident_response/ |
Requires sochdb-server |
demos/3_analytics_copilot/ |
Requires sochdb-server |
-
For SDK Team: Add
ContextQueryandDeduplicationStrategyto the SDK to enable the demos. -
For Examples: Update pyautogen config format or document the Azure deployment naming restriction.
-
For Documentation: Add a note that some demos require
sochdb-serverto be running. -
For CI/CD: Create a test script that runs all examples to catch import errors early.