Skip to main content

LangGraph adapter for Rifft

Project description

rifft-langgraph

LangGraph adapter for Rifft. Zero-config tracing for LangGraph multi-agent pipelines — one import captures every node execution, inter-node handoff, and the full graph run.

Install

pip install rifft-sdk rifft-langgraph

Usage

Import the adapter anywhere before building your graph:

import rifft
import rifft.adapters.langgraph  # instruments StateGraph automatically

rifft.init(project_id="my-project", endpoint="http://localhost:4318")

from langgraph.graph import StateGraph, END
from typing import TypedDict

class State(TypedDict):
    query: str
    research: str
    output: str

def researcher(state: State) -> dict:
    return {"research": "..."}

def writer(state: State) -> dict:
    return {"output": "..."}

graph = StateGraph(State)
graph.add_node("researcher", researcher)
graph.add_node("writer", writer)
graph.add_edge("researcher", "writer")
graph.set_entry_point("researcher")

app = graph.compile()
result = app.invoke({"query": "what is rifft?"})
# Open http://localhost:3000 to see the trace

What gets traced

Event Rifft span
graph.invoke() / graph.ainvoke() langgraph.graph.invoke
Each node execution agent.execute with langgraph.node, input/output state
Node A → Node B handoff rifft.agent_to_agent with source_agent_id, target_agent_id, state payload

Project details


Download files

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

Source Distribution

rifft_langgraph-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

rifft_langgraph-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file rifft_langgraph-0.1.0.tar.gz.

File metadata

  • Download URL: rifft_langgraph-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for rifft_langgraph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 93555ee7f10500fe375aa7b4afc3b5cd4d6dbb1a833cac14bb2c5bccd03483bc
MD5 eb9eb8efb1618b5a8cb11b0ea857399a
BLAKE2b-256 82432f85ca73585e2e7d6e5ec6d9cd1d379db8e9ccc30d5370e315d4103f8e83

See more details on using hashes here.

File details

Details for the file rifft_langgraph-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rifft_langgraph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47b4e857bc2722cbdf89a0eed14c3024188271f8ab207bfaee5814bc1db63ad8
MD5 1fb54ff7d197a70dd5a2fb2b023919ec
BLAKE2b-256 21ede5718b5d742bc939d42ce375805409e3bb3a641d21b0fcd59236b56b9c22

See more details on using hashes here.

Supported by

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