Skip to content

Commit

Permalink
Fix: not having langchain no longer raises an unhandled exception (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
siyangqiu authored May 13, 2024
1 parent fc6a055 commit c614d64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions agentops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
from .decorators import record_function
from .agent import track_agent
from .log_config import set_logging_level_info, set_logging_level_critial
from .langchain_callback_handler import LangchainCallbackHandler, AsyncLangchainCallbackHandler

try:
from .langchain_callback_handler import LangchainCallbackHandler, AsyncLangchainCallbackHandler
except ModuleNotFoundError:
pass

def init(api_key: Optional[str] = None,
parent_key: Optional[str] = None,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "agentops"
version = "0.1.10"
version = "0.1.11"
authors = [
{ name="Alex Reibman", email="[email protected]" },
{ name="Shawn Qiu", email="[email protected]" },
Expand Down

0 comments on commit c614d64

Please sign in to comment.