Skip to main content

Kitaru LangGraph adapter

Record and replay LangGraph agent runs with Kitaru.

Install

uv add kitaru-langgraph

Install kitaru-langgraph[deepagents] to also record agents built with deepagents.create_deep_agent through KitaruGraphRunner.from_agent_factory. The langchain.agents.create_agent factory and direct graph wrapping work without the extra.

Model providers

This distribution does not install any model-provider packages. Model strings passed to init_chat_model, such as "openai:gpt-5-nano", require the matching LangChain provider package (for example langchain-openai) in the agent environment. Install the provider package for each model your agent uses.

Use

import uuid

from langchain.agents import create_agent

from kitaru_langgraph import KitaruGraphRunner

runner = KitaruGraphRunner.from_agent_factory(
    create_agent,
    factory_kwargs={"model": "openai:gpt-5-nano", "tools": []},
    agent_id=uuid.UUID("018f0000-0000-7000-8000-000000000100"),
)
result = runner.invoke({"messages": [{"role": "user", "content": "Hello"}]})
print(result)

Wrap an existing compiled graph directly with KitaruGraphRunner(graph) when you build the graph yourself. The runner accepts the same invocation arguments as the wrapped runnable. Kitaru workers provide task, replay, and authentication context through the standard task environment.

Replay support depends on how the graph was constructed. See the LangGraph adapter guide and capability matrix for supported invocation methods, overrides, tool policies, interrupts, and failure behavior.

LangGraph trace policies can omit middleware span inputs before callbacks receive them. With Deep Agents 0.7.9 and later, some built-in middleware spans therefore record inputs: {}; this does not prove that the hook received empty state. Model and tool call inputs remain recorded. See the adapter guide for details.

Deep Agents runs its built-in middleware before custom middleware, including Kitaru's. A built-in rejection, such as a parallel write to the same file, therefore takes precedence over Kitaru's static or history tool policy. Keeping the same Deep Agents version when replaying avoids changes to these built-in rules across versions.

Tool attempts that return a native result without executing a tool are recorded with execution: short_circuited. An error ToolMessage remains a completed result with its native error status, so history replay can return it to the model rather than turn it into a raised exception.

Licensed under Apache-2.0.

Metadata

Release files for kitaru-langgraph 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kitaru-langgraph 0.3.1
File Size Uploaded Provenance Actions
kitaru_langgraph-0.3.1.tar.gz 26.9 kB With provenance Details for kitaru_langgraph-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kitaru-langgraph 0.3.1
File Interpreter ABI Platform Actions
kitaru_langgraph-0.3.1-py3-none-any.whl Python 3 none any Details for kitaru_langgraph-0.3.1-py3-none-any.whl

Total release size: 56.1 kB

Release files / kitaru_langgraph-0.3.1.tar.gz

Download URL kitaru_langgraph-0.3.1.tar.gz
Size 26.9 kB
Tags Source
SHA-256 checksum
How to use checksums
38b9976fdf273b21fb2cf8af5b818043fd3e32f7cef4bfd9816aec68ba230437
BLAKE2b-256 checksum
How to use checksums
5fd0f68f5abf6bfa60530d7520f1de8f87c92a735992d2ba05108184b866d68f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / kitaru_langgraph-0.3.1-py3-none-any.whl

Download URL kitaru_langgraph-0.3.1-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69395f84647fa3e5ab1f9ef6273b05612e4e7cb16e6de3ca435cd09e5b4bace4
BLAKE2b-256 checksum
How to use checksums
dc08149a1567a17689e63b8a7da564ef4f94d8bd3c03413296f6d081035f1a9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for kitaru-langgraph 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kitaru_langgraph-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page