Skip to content
Merged
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
16 changes: 16 additions & 0 deletions test-langchain/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[project]
name = "test-langchain"
version = "0"
requires-python = ">=3.12"

dependencies = [
"ipdb>=0.13.13",
"langchain>=0.3.18",
"langchain-anthropic>=0.3.12",
"langchain-community>=0.3.17",
"langchain-openai>=0.3.7",
"sentry-sdk",
]

[tool.uv.sources]
sentry-sdk = { path = "../../sentry-python", editable = true }
8 changes: 0 additions & 8 deletions test-langchain/requirements.txt

This file was deleted.

11 changes: 4 additions & 7 deletions test-langchain/run.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#!/usr/bin/env bash

set -euo pipefail

reset

python3 -m venv .venv
source .venv/bin/activate

pip install -r requirements.txt
if ! command -v uv &> /dev/null; then
curl -LsSf https://astral.sh/uv/install.sh | sh
fi

python3 main.py
uv run python3 main.py
11 changes: 4 additions & 7 deletions test-langchain/run_async.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#!/usr/bin/env bash

set -euo pipefail

reset

python3 -m venv .venv
source .venv/bin/activate

pip install -r requirements.txt
if ! command -v uv &> /dev/null; then
curl -LsSf https://astral.sh/uv/install.sh | sh
fi

python3 main_async.py
uv run python3 main_async.py
16 changes: 4 additions & 12 deletions test-langchain/run_tool.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
#!/usr/bin/env bash

set -euo pipefail

reset

# Set up environment variables for API keys
# export OPENAI_API_KEY="your-openai-key-here"
# export ANTHROPIC_API_KEY="your-anthropic-key-here"
# export SENTRY_DSN="your-sentry-dsn-here"

python3 -m venv .venv
source .venv/bin/activate

pip install -r requirements.txt
if ! command -v uv &> /dev/null; then
curl -LsSf https://astral.sh/uv/install.sh | sh
fi

python3 main_tool.py
uv run python3 main_tool.py
Loading