langgraph-agent-toolkit 0.1.0__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.env.example +4 -4
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.github/workflows/test.yml +13 -3
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/CHANGELOG.md +31 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/CONTRIBUTING.md +55 -52
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/Makefile +1 -1
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/PKG-INFO +27 -18
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/README.md +25 -15
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/configs/litellm/config.example.yaml +9 -5
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/agent.py +1 -2
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/agent_executor.py +35 -15
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/bg_task_agent/agent.py +1 -1
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/bg_task_agent/task.py +3 -2
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/chatbot/agent.py +3 -3
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/interrupt_agent/agent.py +10 -7
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/react/agent.py +2 -5
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/react_so/agent.py +1 -1
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/supervisor_agent/agent.py +1 -1
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/client/client.py +35 -6
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/memory/base.py +10 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/memory/postgres.py +42 -5
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/memory/sqlite.py +6 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/models/factory.py +7 -7
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/observability/langsmith.py +6 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/settings.py +14 -14
- langgraph_agent_toolkit-0.1.2/langgraph_agent_toolkit/helper/constants.py +26 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/run_agent.py +1 -1
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/run_service.py +1 -1
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/schema/schema.py +20 -5
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/service/factory.py +0 -1
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/service/routes.py +20 -9
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/service/utils.py +8 -12
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/streamlit_app.py +20 -5
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/pyproject.toml +3 -7
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/agents/test_agent_executor.py +22 -5
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/app/conftest.py +1 -1
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/app/test_streamlit_app.py +41 -28
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/client/test_client.py +1 -1
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/core/test_llm.py +5 -5
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/core/test_settings.py +43 -43
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/service/test_service.py +10 -4
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/uv.lock +1 -100
- langgraph_agent_toolkit-0.1.0/langgraph_agent_toolkit/helper/constants.py +0 -10
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.coveragerc +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.dockerignore +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.github/RELEASE_TEMPLATE/release-template.md +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.github/codecov.yml +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.github/dependabot.yml +0 -0
- {langgraph_agent_toolkit-0.1.0/.github/release → langgraph_agent_toolkit-0.1.2/.github/scripts}/tag_from_pyproject.sh +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.github/workflows/deploy.yml +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.github/workflows/release.yml +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.gitignore +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.pre-commit-config.yaml +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/.project-root +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/LICENSE +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/configs/clickhouse/.clickhouse.env.example +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/configs/litellm/.litellm.env.example +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/configs/minio/.minio.env.example +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/configs/postgres/.postgres.env.example +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/configs/redis/.redis.env.example +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/docker/app/Dockerfile +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/docker/service/Dockerfile +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/docker-compose.yaml +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/docs/media/agent_architecture.excalidraw +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/docs/media/agent_architecture.png +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/docs/media/agent_diagram.png +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph.json +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/bg_task_agent/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/bg_task_agent/utils.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/chatbot/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/command_agent/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/command_agent/agent.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/interrupt_agent/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/react/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/react_so/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/blueprints/supervisor_agent/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/components/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/components/creators/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/components/creators/create_react_agent.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/components/tools.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/agents/components/utils.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/client/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/memory/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/memory/factory.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/memory/types.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/models/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/models/chat_openai.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/models/fake.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/observability/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/observability/base.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/observability/empty.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/observability/factory.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/observability/langfuse.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/observability/types.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/prompts/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/core/prompts/chat_prompt_template.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/helper/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/helper/logging.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/helper/types.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/helper/utils.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/run_client.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/schema/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/schema/models.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/schema/task_data.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/service/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/service/exception_handlers.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/service/handler.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/service/middleware.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/langgraph_agent_toolkit/service/types.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/scripts/postgres-init/create_databases.sql +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/scripts/python/01-invoke-proxy.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/scripts/python/02-test-local-pm.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/scripts/python/03-test-langfuse-pm.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/scripts/python/04-test-langsmith-pm.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/scripts/python/05-test-prompt-types.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/scripts/python/06-test-custom-chat-prompt-template.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/client/conftest.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/conftest.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/core/test_memory.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/core/test_observability.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/core/test_prompts.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/integration/test_docker_e2e.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/service/conftest.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/service/test_auth.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/service/test_factory.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/service/test_service_e2e.py +0 -0
- {langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/tests/service/test_utils.py +0 -0
|
@@ -48,10 +48,10 @@ POSTGRES_MAX_IDLE=5
|
|
|
48
48
|
USE_FAKE_MODEL=false
|
|
49
49
|
|
|
50
50
|
# Set a default model
|
|
51
|
-
|
|
51
|
+
DEFAULT_MODEL_TYPE="openai-compatible"
|
|
52
52
|
|
|
53
53
|
# If MODEL is set to "openai-compatible", set the following
|
|
54
54
|
# This is just a flexible solution. If you need multiple model options, you still need to add it to models.py
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
MODEL_NAME=
|
|
56
|
+
MODEL_API_KEY=
|
|
57
|
+
MODEL_BASE_URL=http://litellm:4000/v1
|
|
@@ -3,8 +3,18 @@ name: Build and test
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches: ["main"]
|
|
6
|
+
paths:
|
|
7
|
+
- "docker/**"
|
|
8
|
+
- "langgraph_agent_toolkit/**"
|
|
9
|
+
- "tests/**"
|
|
10
|
+
- "pyproject.toml"
|
|
6
11
|
pull_request:
|
|
7
12
|
branches: ["main"]
|
|
13
|
+
paths:
|
|
14
|
+
- "docker/**"
|
|
15
|
+
- "langgraph_agent_toolkit/**"
|
|
16
|
+
- "tests/**"
|
|
17
|
+
- "pyproject.toml"
|
|
8
18
|
workflow_call:
|
|
9
19
|
|
|
10
20
|
permissions:
|
|
@@ -41,9 +51,9 @@ jobs:
|
|
|
41
51
|
run: |
|
|
42
52
|
uv run pytest --cov=langgraph_agent_toolkit/ --cov-report=xml
|
|
43
53
|
env:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
54
|
+
MODEL_NAME: ${{ secrets.MODEL_NAME }}
|
|
55
|
+
MODEL_API_KEY: ${{ secrets.MODEL_API_KEY }}
|
|
56
|
+
MODEL_BASE_URL: ${{ secrets.MODEL_BASE_URL }}
|
|
47
57
|
|
|
48
58
|
- name: Upload coverage reports to Codecov
|
|
49
59
|
uses: codecov/codecov-action@v5
|
|
@@ -6,6 +6,37 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
6
6
|
and this project adheres to
|
|
7
7
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
## [0.1.2]
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- `user_id` parameter
|
|
14
|
+
- `store` creator to memory classes
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- enhance error handling and testing in Streamlit app
|
|
19
|
+
- add new chat button
|
|
20
|
+
- variable names
|
|
21
|
+
- type hints
|
|
22
|
+
|
|
23
|
+
### Removed
|
|
24
|
+
|
|
25
|
+
- print statements
|
|
26
|
+
|
|
27
|
+
## [0.1.1]
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
- `get_default_agent` and `set_default_agent` functions
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
|
|
35
|
+
- Minor fixes
|
|
36
|
+
- Refactoring
|
|
37
|
+
- Update dependencies
|
|
38
|
+
- Update README
|
|
39
|
+
|
|
9
40
|
## [0.1.0]
|
|
10
41
|
|
|
11
42
|
### Changed
|
|
@@ -4,59 +4,60 @@ First off, thank you for considering contributing to `Langgraph Agent Toolkit`!
|
|
|
4
4
|
|
|
5
5
|
## Development Setup
|
|
6
6
|
|
|
7
|
-
1.
|
|
8
|
-
2.
|
|
9
|
-
|
|
10
|
-
3.
|
|
11
|
-
4.
|
|
7
|
+
1. Make sure you have Python 3.10+ installed
|
|
8
|
+
2. Install [uv](https://docs.astral.sh/uv/getting-started/installation/) package
|
|
9
|
+
manager
|
|
10
|
+
3. Fork the repository
|
|
11
|
+
4. Clone your fork
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
```bash
|
|
14
|
+
git clone https://github.com/YOUR-USERNAME/langgraph-agent-toolkit.git
|
|
15
|
+
cd langgraph-agent-toolkit
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
# Add the upstream remote
|
|
18
|
+
git remote add upstream https://github.com/kryvokhyzha/langgraph-agent-toolkit.git
|
|
19
|
+
```
|
|
20
20
|
|
|
21
|
-
5.
|
|
21
|
+
5. Set up the development environment:
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
```bash
|
|
24
|
+
uv sync
|
|
25
|
+
```
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
That's it! The `uv sync` command will automatically create and use a virtual
|
|
28
|
+
environment.
|
|
29
29
|
|
|
30
|
-
6.
|
|
30
|
+
6. Install pre-commit hooks:
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
```bash
|
|
33
|
+
uv run pre-commit install
|
|
34
|
+
uv run pre-commit run
|
|
35
|
+
```
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
Pre-commit hooks will automatically run checks (like ruff, formatting, etc.)
|
|
38
|
+
when you make a commit, ensuring your code follows our style guidelines.
|
|
39
39
|
|
|
40
40
|
### Running Commands
|
|
41
41
|
|
|
42
42
|
You have two options for running commands:
|
|
43
43
|
|
|
44
|
-
1.
|
|
44
|
+
1. **With the virtual environment activated**:
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
```bash
|
|
47
|
+
source .venv/bin/activate # On Windows: .venv\Scripts\activate
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
# Then run commands directly
|
|
50
|
+
pytest
|
|
51
|
+
pre-commit run --all-files
|
|
52
|
+
```
|
|
53
53
|
|
|
54
|
-
2.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
2. **Without activating the virtual environment**:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# Use uv run prefix for all commands
|
|
58
|
+
uv run pytest
|
|
59
|
+
uv run pre-commit run --all-files
|
|
60
|
+
```
|
|
60
61
|
|
|
61
62
|
Both approaches work - use whichever is more convenient for you.
|
|
62
63
|
|
|
@@ -69,26 +70,28 @@ Both approaches work - use whichever is more convenient for you.
|
|
|
69
70
|
|
|
70
71
|
When adding new dependencies to the library:
|
|
71
72
|
|
|
72
|
-
1.
|
|
73
|
+
1. **Runtime dependencies** - packages needed to run the application:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
uv add new-package
|
|
77
|
+
```
|
|
73
78
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
```
|
|
79
|
+
2. **Development dependencies** - packages needed for development, testing, or
|
|
80
|
+
CI:
|
|
77
81
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
uv add --group dev new-package
|
|
82
|
-
```
|
|
82
|
+
```bash
|
|
83
|
+
uv add --group dev new-package
|
|
84
|
+
```
|
|
83
85
|
|
|
84
86
|
After adding dependencies, make sure to:
|
|
85
87
|
|
|
86
|
-
1.
|
|
87
|
-
2.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
1. Test that everything works with the new package
|
|
89
|
+
2. Commit both `pyproject.toml` and `uv.lock` files:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
git add pyproject.toml uv.lock
|
|
93
|
+
git commit -m "Add new-package dependency"
|
|
94
|
+
```
|
|
92
95
|
|
|
93
96
|
## Development Process
|
|
94
97
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: langgraph-agent-toolkit
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Full toolkit for running an AI agent service built with LangGraph, FastAPI and Streamlit
|
|
5
5
|
Project-URL: repository, https://github.com/kryvokhyzha/langgraph-agent-toolkit
|
|
6
|
+
Project-URL: PyPI, https://pypi.org/project/langgraph-agent-toolkit
|
|
6
7
|
Author-email: Roman Kryvokhyzha <kriwohizha@gmail.com>
|
|
7
8
|
License-Expression: MIT
|
|
8
9
|
License-File: LICENSE
|
|
@@ -36,7 +37,6 @@ Requires-Dist: langgraph-cli[inmem]~=0.2.3
|
|
|
36
37
|
Requires-Dist: langgraph-supervisor~=0.0.16
|
|
37
38
|
Requires-Dist: langgraph~=0.3.30
|
|
38
39
|
Requires-Dist: langsmith~=0.3.31
|
|
39
|
-
Requires-Dist: litellm~=1.66.1
|
|
40
40
|
Requires-Dist: loguru~=0.7.3
|
|
41
41
|
Requires-Dist: multidict>6.3.2
|
|
42
42
|
Requires-Dist: numpy~=1.26.4; python_version <= '3.12'
|
|
@@ -51,7 +51,6 @@ Requires-Dist: python-dotenv~=1.1.0
|
|
|
51
51
|
Requires-Dist: rootutils>=1.0.7
|
|
52
52
|
Requires-Dist: setuptools>=75.6.0
|
|
53
53
|
Requires-Dist: streamlit~=1.44.1
|
|
54
|
-
Requires-Dist: tiktoken>=0.8.0
|
|
55
54
|
Requires-Dist: uvicorn~=0.34.0
|
|
56
55
|
Requires-Dist: watchdog~=6.0.0
|
|
57
56
|
Provides-Extra: aws
|
|
@@ -72,13 +71,15 @@ Description-Content-Type: text/markdown
|
|
|
72
71
|
|
|
73
72
|
# 🧰 Langgraph Agent Toolkit
|
|
74
73
|
|
|
75
|
-
<!-- [](https://pypi.org/project/langgraph-agent-toolkit/) -->
|
|
76
|
-
|
|
77
74
|
[](https://github.com/kryvokhyzha/langgraph-agent-toolkit/actions/workflows/test.yml)
|
|
78
|
-
[](https://pypi.org/project/langgraph-agent-toolkit/)
|
|
76
|
+
[](https://pypi.org/project/langgraph-agent-toolkit/)
|
|
77
|
+
[](https://github.com/astral-sh/ruff)
|
|
79
78
|
[](https://codecov.io/gh/kryvokhyzha/langgraph-agent-toolkit)
|
|
80
79
|
[](https://github.com/kryvokhyzha/langgraph-agent-toolkit/blob/main/pyproject.toml)
|
|
81
|
-
[](https://github.com/kryvokhyzha/langgraph-agent-toolkit/blob/main/LICENSE)
|
|
81
|
+
|
|
82
|
+
<!-- [](https://github.com/kryvokhyzha/langgraph-agent-toolkit/blob/main/LICENSE) -->
|
|
82
83
|
|
|
83
84
|
<!-- [](https://langgraph-agent-toolkit.streamlit.app/) -->
|
|
84
85
|
|
|
@@ -102,7 +103,7 @@ Features include:
|
|
|
102
103
|
|
|
103
104
|
1. Create a `.env` file based on [`.env.example`](./.env.example)
|
|
104
105
|
|
|
105
|
-
2. **Option 1: Run with Python**
|
|
106
|
+
2. **Option 1: Run with Python from source**
|
|
106
107
|
|
|
107
108
|
```sh
|
|
108
109
|
# Install dependencies
|
|
@@ -118,7 +119,14 @@ Features include:
|
|
|
118
119
|
streamlit run langgraph_agent_toolkit/streamlit_app.py
|
|
119
120
|
```
|
|
120
121
|
|
|
121
|
-
3. **Option 2: Run with
|
|
122
|
+
3. **Option 2: Run with Python from PyPi repository**
|
|
123
|
+
|
|
124
|
+
```sh
|
|
125
|
+
pip install langgraph-agent-toolkit
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
4. **Option 3: Run with Docker**
|
|
129
|
+
|
|
122
130
|
```sh
|
|
123
131
|
docker compose watch
|
|
124
132
|
```
|
|
@@ -176,9 +184,9 @@ Features include:
|
|
|
176
184
|
|
|
177
185
|
```env
|
|
178
186
|
# LiteLLM configuration
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
187
|
+
MODEL_NAME="gpt4o" # LiteLLM model name
|
|
188
|
+
MODEL_BASE_URL=http://litellm:4000/v1 # LiteLLM endpoint
|
|
189
|
+
MODEL_API_KEY=sk-any-string # LiteLLM master key
|
|
182
190
|
```
|
|
183
191
|
|
|
184
192
|
**🗄️ Database Configuration**
|
|
@@ -335,15 +343,14 @@ enables live reloading:
|
|
|
335
343
|
|
|
336
344
|
3. Access endpoints:
|
|
337
345
|
|
|
338
|
-
- 🖥️ Streamlit app: `http://
|
|
346
|
+
- 🖥️ Streamlit app: `http://0.0.0.0:8501`
|
|
339
347
|
- 🔌 Agent API: `http://0.0.0.0:8080`
|
|
340
|
-
- 📚 API docs: `http://0.0.0.0:8080/
|
|
341
|
-
- 📊 Langfuse dashboard: `http://
|
|
342
|
-
-
|
|
343
|
-
- 🤖 LiteLLM API: `http://localhost:4000`
|
|
344
|
-
- 📈 ClickHouse HTTP: `http://localhost:8123`
|
|
348
|
+
- 📚 API docs: `http://0.0.0.0:8080/docs`
|
|
349
|
+
- 📊 Langfuse dashboard: `http://0.0.0.0:3000`
|
|
350
|
+
- 🤖 LiteLLM API: `http://0.0.0.0:4000`
|
|
345
351
|
|
|
346
352
|
4. Stop services:
|
|
353
|
+
|
|
347
354
|
```sh
|
|
348
355
|
docker compose down
|
|
349
356
|
```
|
|
@@ -409,6 +416,8 @@ The project works with
|
|
|
409
416
|
## 📚 Useful Resources
|
|
410
417
|
|
|
411
418
|
- [LangGraph documentation](https://langchain-ai.github.io/langgraph/concepts/low_level/#multiple-schemas)
|
|
419
|
+
- [LangGraph Memory Concept](https://langchain-ai.github.io/langgraph/concepts/memory/)
|
|
420
|
+
- [How to create tools in Langchain](https://python.langchain.com/docs/how_to/custom_tools/)
|
|
412
421
|
- [Simple Serverless FastAPI with AWS Lambda](https://www.deadbear.io/simple-serverless-fastapi-with-aws-lambda/)
|
|
413
422
|
|
|
414
423
|
## 👥 Development and Contributing
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# 🧰 Langgraph Agent Toolkit
|
|
2
2
|
|
|
3
|
-
<!-- [](https://pypi.org/project/langgraph-agent-toolkit/) -->
|
|
4
|
-
|
|
5
3
|
[](https://github.com/kryvokhyzha/langgraph-agent-toolkit/actions/workflows/test.yml)
|
|
6
|
-
[](https://pypi.org/project/langgraph-agent-toolkit/)
|
|
5
|
+
[](https://pypi.org/project/langgraph-agent-toolkit/)
|
|
6
|
+
[](https://github.com/astral-sh/ruff)
|
|
7
7
|
[](https://codecov.io/gh/kryvokhyzha/langgraph-agent-toolkit)
|
|
8
8
|
[](https://github.com/kryvokhyzha/langgraph-agent-toolkit/blob/main/pyproject.toml)
|
|
9
|
-
[](https://github.com/kryvokhyzha/langgraph-agent-toolkit/blob/main/LICENSE)
|
|
10
|
+
|
|
11
|
+
<!-- [](https://github.com/kryvokhyzha/langgraph-agent-toolkit/blob/main/LICENSE) -->
|
|
10
12
|
|
|
11
13
|
<!-- [](https://langgraph-agent-toolkit.streamlit.app/) -->
|
|
12
14
|
|
|
@@ -30,7 +32,7 @@ Features include:
|
|
|
30
32
|
|
|
31
33
|
1. Create a `.env` file based on [`.env.example`](./.env.example)
|
|
32
34
|
|
|
33
|
-
2. **Option 1: Run with Python**
|
|
35
|
+
2. **Option 1: Run with Python from source**
|
|
34
36
|
|
|
35
37
|
```sh
|
|
36
38
|
# Install dependencies
|
|
@@ -46,7 +48,14 @@ Features include:
|
|
|
46
48
|
streamlit run langgraph_agent_toolkit/streamlit_app.py
|
|
47
49
|
```
|
|
48
50
|
|
|
49
|
-
3. **Option 2: Run with
|
|
51
|
+
3. **Option 2: Run with Python from PyPi repository**
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
pip install langgraph-agent-toolkit
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
4. **Option 3: Run with Docker**
|
|
58
|
+
|
|
50
59
|
```sh
|
|
51
60
|
docker compose watch
|
|
52
61
|
```
|
|
@@ -104,9 +113,9 @@ Features include:
|
|
|
104
113
|
|
|
105
114
|
```env
|
|
106
115
|
# LiteLLM configuration
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
116
|
+
MODEL_NAME="gpt4o" # LiteLLM model name
|
|
117
|
+
MODEL_BASE_URL=http://litellm:4000/v1 # LiteLLM endpoint
|
|
118
|
+
MODEL_API_KEY=sk-any-string # LiteLLM master key
|
|
110
119
|
```
|
|
111
120
|
|
|
112
121
|
**🗄️ Database Configuration**
|
|
@@ -263,15 +272,14 @@ enables live reloading:
|
|
|
263
272
|
|
|
264
273
|
3. Access endpoints:
|
|
265
274
|
|
|
266
|
-
- 🖥️ Streamlit app: `http://
|
|
275
|
+
- 🖥️ Streamlit app: `http://0.0.0.0:8501`
|
|
267
276
|
- 🔌 Agent API: `http://0.0.0.0:8080`
|
|
268
|
-
- 📚 API docs: `http://0.0.0.0:8080/
|
|
269
|
-
- 📊 Langfuse dashboard: `http://
|
|
270
|
-
-
|
|
271
|
-
- 🤖 LiteLLM API: `http://localhost:4000`
|
|
272
|
-
- 📈 ClickHouse HTTP: `http://localhost:8123`
|
|
277
|
+
- 📚 API docs: `http://0.0.0.0:8080/docs`
|
|
278
|
+
- 📊 Langfuse dashboard: `http://0.0.0.0:3000`
|
|
279
|
+
- 🤖 LiteLLM API: `http://0.0.0.0:4000`
|
|
273
280
|
|
|
274
281
|
4. Stop services:
|
|
282
|
+
|
|
275
283
|
```sh
|
|
276
284
|
docker compose down
|
|
277
285
|
```
|
|
@@ -337,6 +345,8 @@ The project works with
|
|
|
337
345
|
## 📚 Useful Resources
|
|
338
346
|
|
|
339
347
|
- [LangGraph documentation](https://langchain-ai.github.io/langgraph/concepts/low_level/#multiple-schemas)
|
|
348
|
+
- [LangGraph Memory Concept](https://langchain-ai.github.io/langgraph/concepts/memory/)
|
|
349
|
+
- [How to create tools in Langchain](https://python.langchain.com/docs/how_to/custom_tools/)
|
|
340
350
|
- [Simple Serverless FastAPI with AWS Lambda](https://www.deadbear.io/simple-serverless-fastapi-with-aws-lambda/)
|
|
341
351
|
|
|
342
352
|
## 👥 Development and Contributing
|
{langgraph_agent_toolkit-0.1.0 → langgraph_agent_toolkit-0.1.2}/configs/litellm/config.example.yaml
RENAMED
|
@@ -16,11 +16,6 @@ model_list:
|
|
|
16
16
|
model_info:
|
|
17
17
|
supported_environments: ["development", "production", "staging"]
|
|
18
18
|
|
|
19
|
-
litellm_settings:
|
|
20
|
-
num_retries: 2 # retry call 3 times on each model_name (e.g. zephyr-beta)
|
|
21
|
-
request_timeout: 40 # raise Timeout error if call takes longer than 10s. Sets litellm.request_timeout
|
|
22
|
-
allowed_fails: 3 # cooldown model if it fails > 1 call in a minute.
|
|
23
|
-
|
|
24
19
|
credential_list:
|
|
25
20
|
- credential_name: default_azure_credential
|
|
26
21
|
credential_values:
|
|
@@ -30,6 +25,12 @@ credential_list:
|
|
|
30
25
|
credential_info:
|
|
31
26
|
description: "Production credentials for EU region"
|
|
32
27
|
|
|
28
|
+
litellm_settings:
|
|
29
|
+
drop_params: True
|
|
30
|
+
num_retries: 2 # retry call 3 times on each model_name (e.g. zephyr-beta)
|
|
31
|
+
request_timeout: 40 # raise Timeout error if call takes longer than 10s. Sets litellm.request_timeout
|
|
32
|
+
allowed_fails: 3 # cooldown model if it fails > 1 call in a minute.
|
|
33
|
+
|
|
33
34
|
router_settings: # router_settings are optional
|
|
34
35
|
routing_strategy: latency-based-routing # Literal["simple-shuffle", "least-busy", "usage-based-routing","latency-based-routing"], default="simple-shuffle"
|
|
35
36
|
model_group_alias: { "gpt-4": "gpt-3.5-turbo" } # all requests with `gpt-4` will be routed to models with `gpt-3.5-turbo`
|
|
@@ -41,3 +42,6 @@ router_settings: # router_settings are optional
|
|
|
41
42
|
|
|
42
43
|
general_settings:
|
|
43
44
|
master_key: os.environ/LITELLM_MASTER_KEY
|
|
45
|
+
database_connection_pool_limit: 1000
|
|
46
|
+
store_model_in_db: True
|
|
47
|
+
store_prompts_in_spend_logs: True
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
from dataclasses import dataclass
|
|
2
2
|
|
|
3
3
|
from langgraph.func import Pregel
|
|
4
|
-
from langgraph.graph.state import CompiledStateGraph
|
|
5
4
|
|
|
6
5
|
from langgraph_agent_toolkit.core.observability.base import BaseObservabilityPlatform
|
|
7
6
|
|
|
@@ -10,5 +9,5 @@ from langgraph_agent_toolkit.core.observability.base import BaseObservabilityPla
|
|
|
10
9
|
class Agent:
|
|
11
10
|
name: str
|
|
12
11
|
description: str
|
|
13
|
-
graph:
|
|
12
|
+
graph: Pregel
|
|
14
13
|
observability: BaseObservabilityPlatform | None = None
|