Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ You can find detailed documentation and available integrations [here](https://ww

- fix: Fixes chunk and chat auto-tracing for gemini client

### 3.8.4

- feat: Adds instrumentation based Langchain integration

### 3.8.5

- feat: Completes Langchain instrumentation for retrievals and streaming methods

### 3.8.2

- feat: Adds one line integration for Portkey AI
Expand Down
2 changes: 2 additions & 0 deletions maxim/logger/langchain/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .tracer import MaximLangchainTracer
from .instrumenter import instrument_langchain
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix the syntax error in instrumenter.py before importing.

The import will fail due to a syntax error in instrumenter.py at line 42. The docstring needs proper indentation.

Also applies to: 36-36

🧰 Tools
🪛 Pylint (3.3.7)

[error] 2-2: Cannot import 'instrumenter' due to 'expected an indented block after function definition on line 41 (maxim.logger.langchain.instrumenter, line 42)'

(E0001)

🤖 Prompt for AI Agents
In maxim/logger/langchain/instrumenter.py at line 42 and also line 36, fix the
syntax error caused by improper indentation of the docstring. Ensure the
docstring is correctly indented according to Python standards so that the file
can be imported without syntax errors in __init__.py at line 2.

from .utils import (
parse_base_message_to_maxim_generation,
parse_langchain_chat_generation,
Expand Down Expand Up @@ -32,4 +33,5 @@
"parse_langchain_message",
"parse_langchain_tool_call",
"parse_base_message_to_maxim_generation",
"instrument_langchain",
]
Loading