Skip to main content

zizkadb-langchain

LangChain AsyncCallbackHandler that logs LLM and tool steps to ZizkaDB with parent_id lineage.

pip install zizkadb-sdk zizkadb-langchain langchain-openai
from langchain_openai import ChatOpenAI
from langchain_core.messages import HumanMessage
from zizkadb import ZizkaDB
from zizkadb_langchain import ZizkaDBCallbackHandler

async with ZizkaDB("zizkadb_live_...") as db:
    handler = ZizkaDBCallbackHandler(db, agent="my-bot")
    llm = ChatOpenAI(model="gpt-4o-mini")
    await llm.ainvoke([HumanMessage(content="Hello")], config={"callbacks": [handler]})
    (await db.why(handler.last_event_id)).print()

Monorepo dev install:

pip install -e sdk/python -e integrations/langchain

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zizkadb_langchain-0.1.1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zizkadb_langchain-0.1.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file zizkadb_langchain-0.1.1.tar.gz.

File metadata

  • Download URL: zizkadb_langchain-0.1.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for zizkadb_langchain-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bc5cdd08d0b53df13dc91a40127fd54432d308e629b58ed371619c3374c596df
MD5 efccf4f6fa5d27ae6219a622051eeeb1
BLAKE2b-256 c83d138aa152294d684451cb6494b723c933e96e058342ee8059017a81ecf7d6

See more details on using hashes here.

File details

Details for the file zizkadb_langchain-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for zizkadb_langchain-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a4deb8763dc07ed112379bab1970a2c6bd7a48e0eeceb456559dfdc82786ae5
MD5 43b814018c7c5faa3fd08f71ed738ec6
BLAKE2b-256 665df5ac9aa0affc976296cf2f76a27e0766d9810e8fd3dcab9f5e5cd34c08d8

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page