langgraph-agent-toolkit 0.1.1__tar.gz → 0.2.0__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.2.0/.coveragerc +6 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/.env.example +35 -8
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/.github/PULL_REQUEST_TEMPLATE.md +2 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/.github/workflows/test.yml +13 -3
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/CHANGELOG.md +42 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/CONTRIBUTING.md +55 -52
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/Makefile +1 -1
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/PKG-INFO +45 -16
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/README.md +43 -15
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/configs/litellm/config.example.yaml +22 -6
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/agent.py +1 -2
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/agent_executor.py +42 -14
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/bg_task_agent/agent.py +7 -1
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/bg_task_agent/task.py +3 -2
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/chatbot/agent.py +9 -5
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/interrupt_agent/agent.py +26 -7
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/react/agent.py +7 -1
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/react_so/agent.py +7 -1
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/supervisor_agent/agent.py +7 -1
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/client/client.py +79 -25
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/memory/base.py +10 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/memory/postgres.py +44 -6
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/memory/sqlite.py +6 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/models/factory.py +37 -38
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/observability/langsmith.py +6 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/settings.py +34 -42
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/helper/constants.py +5 -1
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/schema/__init__.py +0 -2
- langgraph_agent_toolkit-0.2.0/langgraph_agent_toolkit/schema/models.py +13 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/schema/schema.py +28 -14
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/service/routes.py +7 -7
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/service/utils.py +6 -12
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/streamlit_app.py +18 -7
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/pyproject.toml +3 -5
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/agents/test_agent_executor.py +28 -11
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/app/conftest.py +0 -3
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/app/test_streamlit_app.py +52 -34
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/client/test_client.py +10 -9
- langgraph_agent_toolkit-0.2.0/tests/core/test_llm.py +48 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/core/test_settings.py +53 -59
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/integration/test_docker_e2e.py +2 -1
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/service/test_service.py +15 -17
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/uv.lock +1 -1
- langgraph_agent_toolkit-0.1.1/.coveragerc +0 -5
- langgraph_agent_toolkit-0.1.1/langgraph_agent_toolkit/schema/models.py +0 -25
- langgraph_agent_toolkit-0.1.1/tests/core/test_llm.py +0 -56
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/.dockerignore +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/.github/RELEASE_TEMPLATE/release-template.md +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/.github/codecov.yml +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/.github/dependabot.yml +0 -0
- {langgraph_agent_toolkit-0.1.1/.github/release → langgraph_agent_toolkit-0.2.0/.github/scripts}/tag_from_pyproject.sh +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/.github/workflows/deploy.yml +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/.github/workflows/release.yml +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/.gitignore +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/.pre-commit-config.yaml +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/.project-root +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/LICENSE +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/configs/clickhouse/.clickhouse.env.example +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/configs/litellm/.litellm.env.example +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/configs/minio/.minio.env.example +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/configs/postgres/.postgres.env.example +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/configs/redis/.redis.env.example +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/docker/app/Dockerfile +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/docker/service/Dockerfile +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/docker-compose.yaml +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/docs/media/agent_architecture.excalidraw +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/docs/media/agent_architecture.png +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/docs/media/agent_diagram.png +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph.json +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/bg_task_agent/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/bg_task_agent/utils.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/chatbot/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/command_agent/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/command_agent/agent.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/interrupt_agent/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/react/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/react_so/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/blueprints/supervisor_agent/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/components/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/components/creators/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/components/creators/create_react_agent.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/components/tools.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/agents/components/utils.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/client/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/memory/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/memory/factory.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/memory/types.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/models/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/models/chat_openai.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/models/fake.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/observability/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/observability/base.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/observability/empty.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/observability/factory.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/observability/langfuse.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/observability/types.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/prompts/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/core/prompts/chat_prompt_template.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/helper/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/helper/logging.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/helper/types.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/helper/utils.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/run_agent.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/run_client.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/run_service.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/schema/task_data.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/service/__init__.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/service/exception_handlers.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/service/factory.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/service/handler.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/service/middleware.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/langgraph_agent_toolkit/service/types.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/scripts/postgres-init/create_databases.sql +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/scripts/python/01-invoke-proxy.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/scripts/python/02-test-local-pm.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/scripts/python/03-test-langfuse-pm.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/scripts/python/04-test-langsmith-pm.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/scripts/python/05-test-prompt-types.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/scripts/python/06-test-custom-chat-prompt-template.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/client/conftest.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/conftest.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/core/test_memory.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/core/test_observability.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/core/test_prompts.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/service/conftest.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/service/test_auth.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/service/test_factory.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/service/test_service_e2e.py +0 -0
- {langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/tests/service/test_utils.py +0 -0
|
@@ -47,11 +47,38 @@ POSTGRES_MAX_IDLE=5
|
|
|
47
47
|
# Use a fake model for testing
|
|
48
48
|
USE_FAKE_MODEL=false
|
|
49
49
|
|
|
50
|
-
#
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
# OpenAI Settings
|
|
51
|
+
OPENAI_API_KEY=
|
|
52
|
+
OPENAI_API_BASE_URL=
|
|
53
|
+
OPENAI_API_VERSION=
|
|
54
|
+
OPENAI_MODEL_NAME=
|
|
55
|
+
|
|
56
|
+
# Azure OpenAI Settings
|
|
57
|
+
AZURE_OPENAI_API_KEY=
|
|
58
|
+
AZURE_OPENAI_ENDPOINT=
|
|
59
|
+
AZURE_OPENAI_API_VERSION=
|
|
60
|
+
AZURE_OPENAI_MODEL_NAME=
|
|
61
|
+
AZURE_OPENAI_DEPLOYMENT_NAME=
|
|
62
|
+
|
|
63
|
+
# Anthropic Settings
|
|
64
|
+
ANTHROPIC_API_KEY=
|
|
65
|
+
ANTHROPIC_MODEL_NAME=
|
|
66
|
+
|
|
67
|
+
# Google VertexAI Settings
|
|
68
|
+
GOOGLE_VERTEXAI_MODEL_NAME=
|
|
69
|
+
GOOGLE_VERTEXAI_API_KEY=
|
|
70
|
+
|
|
71
|
+
# Google GenAI Settings
|
|
72
|
+
GOOGLE_GENAI_MODEL_NAME=
|
|
73
|
+
GOOGLE_GENAI_API_KEY=
|
|
74
|
+
|
|
75
|
+
# Bedrock Settings
|
|
76
|
+
AWS_BEDROCK_MODEL_NAME=
|
|
77
|
+
|
|
78
|
+
# DeepSeek Settings
|
|
79
|
+
DEEPSEEK_MODEL_NAME=
|
|
80
|
+
DEEPSEEK_API_KEY=
|
|
81
|
+
|
|
82
|
+
# Ollama Settings
|
|
83
|
+
OLLAMA_MODEL_NAME=
|
|
84
|
+
OLLAMA_BASE_URL=
|
|
@@ -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,48 @@ 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.2.0]
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Refactored code structure for better maintainability
|
|
14
|
+
- Refactored Model factory
|
|
15
|
+
|
|
16
|
+
### Removed
|
|
17
|
+
|
|
18
|
+
- Removed AllModels and added environment variables for different providers
|
|
19
|
+
|
|
20
|
+
## [0.1.2]
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- `user_id` parameter
|
|
25
|
+
- `store` creator to memory classes
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- enhance error handling and testing in Streamlit app
|
|
30
|
+
- add new chat button
|
|
31
|
+
- variable names
|
|
32
|
+
- type hints
|
|
33
|
+
|
|
34
|
+
### Removed
|
|
35
|
+
|
|
36
|
+
- print statements
|
|
37
|
+
|
|
38
|
+
## [0.1.1]
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- `get_default_agent` and `set_default_agent` functions
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
- Minor fixes
|
|
47
|
+
- Refactoring
|
|
48
|
+
- Update dependencies
|
|
49
|
+
- Update README
|
|
50
|
+
|
|
9
51
|
## [0.1.0]
|
|
10
52
|
|
|
11
53
|
### 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.
|
|
3
|
+
Version: 0.2.0
|
|
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
|
|
@@ -73,10 +74,12 @@ Description-Content-Type: text/markdown
|
|
|
73
74
|
[](https://github.com/kryvokhyzha/langgraph-agent-toolkit/actions/workflows/test.yml)
|
|
74
75
|
[](https://pypi.org/project/langgraph-agent-toolkit/)
|
|
75
76
|
[](https://pypi.org/project/langgraph-agent-toolkit/)
|
|
76
|
-
[](https://github.com/astral-sh/ruff)
|
|
77
78
|
[](https://codecov.io/gh/kryvokhyzha/langgraph-agent-toolkit)
|
|
78
79
|
[](https://github.com/kryvokhyzha/langgraph-agent-toolkit/blob/main/pyproject.toml)
|
|
79
|
-
[](https://github.com/kryvokhyzha/langgraph-agent-toolkit/blob/main/LICENSE)
|
|
81
|
+
|
|
82
|
+
<!-- [](https://github.com/kryvokhyzha/langgraph-agent-toolkit/blob/main/LICENSE) -->
|
|
80
83
|
|
|
81
84
|
<!-- [](https://langgraph-agent-toolkit.streamlit.app/) -->
|
|
82
85
|
|
|
@@ -100,7 +103,7 @@ Features include:
|
|
|
100
103
|
|
|
101
104
|
1. Create a `.env` file based on [`.env.example`](./.env.example)
|
|
102
105
|
|
|
103
|
-
2. **Option 1: Run with Python**
|
|
106
|
+
2. **Option 1: Run with Python from source**
|
|
104
107
|
|
|
105
108
|
```sh
|
|
106
109
|
# Install dependencies
|
|
@@ -116,7 +119,13 @@ Features include:
|
|
|
116
119
|
streamlit run langgraph_agent_toolkit/streamlit_app.py
|
|
117
120
|
```
|
|
118
121
|
|
|
119
|
-
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**
|
|
120
129
|
|
|
121
130
|
```sh
|
|
122
131
|
docker compose watch
|
|
@@ -124,7 +133,8 @@ Features include:
|
|
|
124
133
|
|
|
125
134
|
## 🏗️ Architecture
|
|
126
135
|
|
|
127
|
-
<img src="docs/media/agent_architecture.png" width="800">
|
|
136
|
+
<!-- <img src="docs/media/agent_architecture.png" width="800"> -->
|
|
137
|
+
<img src="https://github.com/kryvokhyzha/langgraph-agent-toolkit/blob/main/docs/media/agent_architecture.png?raw=true" width="800">
|
|
128
138
|
|
|
129
139
|
## ✨ Key Features
|
|
130
140
|
|
|
@@ -174,10 +184,29 @@ Features include:
|
|
|
174
184
|
**🔑 LLM API Configuration**
|
|
175
185
|
|
|
176
186
|
```env
|
|
177
|
-
#
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
187
|
+
# OpenAI Settings
|
|
188
|
+
OPENAI_API_KEY=sk-xxxxxxxxxxxxx
|
|
189
|
+
OPENAI_API_BASE_URL=http://litellm:4000/v1 # Can be OpenAI API or LiteLLM proxy
|
|
190
|
+
OPENAI_API_VERSION=2025-01-01
|
|
191
|
+
OPENAI_MODEL_NAME=gpt-4o-mini
|
|
192
|
+
|
|
193
|
+
# Azure OpenAI Settings (Optional)
|
|
194
|
+
AZURE_OPENAI_API_KEY=
|
|
195
|
+
AZURE_OPENAI_ENDPOINT=
|
|
196
|
+
AZURE_OPENAI_API_VERSION=
|
|
197
|
+
AZURE_OPENAI_MODEL_NAME=
|
|
198
|
+
AZURE_OPENAI_DEPLOYMENT_NAME=
|
|
199
|
+
|
|
200
|
+
# Anthropic Settings (Optional)
|
|
201
|
+
ANTHROPIC_API_KEY=
|
|
202
|
+
ANTHROPIC_MODEL_NAME=
|
|
203
|
+
|
|
204
|
+
# Other provider settings are also available:
|
|
205
|
+
# - Google VertexAI
|
|
206
|
+
# - Google GenAI
|
|
207
|
+
# - AWS Bedrock
|
|
208
|
+
# - DeepSeek
|
|
209
|
+
# - Ollama
|
|
181
210
|
```
|
|
182
211
|
|
|
183
212
|
**🗄️ Database Configuration**
|
|
@@ -334,13 +363,11 @@ enables live reloading:
|
|
|
334
363
|
|
|
335
364
|
3. Access endpoints:
|
|
336
365
|
|
|
337
|
-
- 🖥️ Streamlit app: `http://
|
|
366
|
+
- 🖥️ Streamlit app: `http://0.0.0.0:8501`
|
|
338
367
|
- 🔌 Agent API: `http://0.0.0.0:8080`
|
|
339
|
-
- 📚 API docs: `http://0.0.0.0:8080/
|
|
340
|
-
- 📊 Langfuse dashboard: `http://
|
|
341
|
-
-
|
|
342
|
-
- 🤖 LiteLLM API: `http://localhost:4000`
|
|
343
|
-
- 📈 ClickHouse HTTP: `http://localhost:8123`
|
|
368
|
+
- 📚 API docs: `http://0.0.0.0:8080/docs`
|
|
369
|
+
- 📊 Langfuse dashboard: `http://0.0.0.0:3000`
|
|
370
|
+
- 🤖 LiteLLM API: `http://0.0.0.0:4000`
|
|
344
371
|
|
|
345
372
|
4. Stop services:
|
|
346
373
|
|
|
@@ -409,6 +436,8 @@ The project works with
|
|
|
409
436
|
## 📚 Useful Resources
|
|
410
437
|
|
|
411
438
|
- [LangGraph documentation](https://langchain-ai.github.io/langgraph/concepts/low_level/#multiple-schemas)
|
|
439
|
+
- [LangGraph Memory Concept](https://langchain-ai.github.io/langgraph/concepts/memory/)
|
|
440
|
+
- [How to create tools in Langchain](https://python.langchain.com/docs/how_to/custom_tools/)
|
|
412
441
|
- [Simple Serverless FastAPI with AWS Lambda](https://www.deadbear.io/simple-serverless-fastapi-with-aws-lambda/)
|
|
413
442
|
|
|
414
443
|
## 👥 Development and Contributing
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
[](https://github.com/kryvokhyzha/langgraph-agent-toolkit/actions/workflows/test.yml)
|
|
4
4
|
[](https://pypi.org/project/langgraph-agent-toolkit/)
|
|
5
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,13 @@ 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**
|
|
50
58
|
|
|
51
59
|
```sh
|
|
52
60
|
docker compose watch
|
|
@@ -54,7 +62,8 @@ Features include:
|
|
|
54
62
|
|
|
55
63
|
## 🏗️ Architecture
|
|
56
64
|
|
|
57
|
-
<img src="docs/media/agent_architecture.png" width="800">
|
|
65
|
+
<!-- <img src="docs/media/agent_architecture.png" width="800"> -->
|
|
66
|
+
<img src="https://github.com/kryvokhyzha/langgraph-agent-toolkit/blob/main/docs/media/agent_architecture.png?raw=true" width="800">
|
|
58
67
|
|
|
59
68
|
## ✨ Key Features
|
|
60
69
|
|
|
@@ -104,10 +113,29 @@ Features include:
|
|
|
104
113
|
**🔑 LLM API Configuration**
|
|
105
114
|
|
|
106
115
|
```env
|
|
107
|
-
#
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
116
|
+
# OpenAI Settings
|
|
117
|
+
OPENAI_API_KEY=sk-xxxxxxxxxxxxx
|
|
118
|
+
OPENAI_API_BASE_URL=http://litellm:4000/v1 # Can be OpenAI API or LiteLLM proxy
|
|
119
|
+
OPENAI_API_VERSION=2025-01-01
|
|
120
|
+
OPENAI_MODEL_NAME=gpt-4o-mini
|
|
121
|
+
|
|
122
|
+
# Azure OpenAI Settings (Optional)
|
|
123
|
+
AZURE_OPENAI_API_KEY=
|
|
124
|
+
AZURE_OPENAI_ENDPOINT=
|
|
125
|
+
AZURE_OPENAI_API_VERSION=
|
|
126
|
+
AZURE_OPENAI_MODEL_NAME=
|
|
127
|
+
AZURE_OPENAI_DEPLOYMENT_NAME=
|
|
128
|
+
|
|
129
|
+
# Anthropic Settings (Optional)
|
|
130
|
+
ANTHROPIC_API_KEY=
|
|
131
|
+
ANTHROPIC_MODEL_NAME=
|
|
132
|
+
|
|
133
|
+
# Other provider settings are also available:
|
|
134
|
+
# - Google VertexAI
|
|
135
|
+
# - Google GenAI
|
|
136
|
+
# - AWS Bedrock
|
|
137
|
+
# - DeepSeek
|
|
138
|
+
# - Ollama
|
|
111
139
|
```
|
|
112
140
|
|
|
113
141
|
**🗄️ Database Configuration**
|
|
@@ -264,13 +292,11 @@ enables live reloading:
|
|
|
264
292
|
|
|
265
293
|
3. Access endpoints:
|
|
266
294
|
|
|
267
|
-
- 🖥️ Streamlit app: `http://
|
|
295
|
+
- 🖥️ Streamlit app: `http://0.0.0.0:8501`
|
|
268
296
|
- 🔌 Agent API: `http://0.0.0.0:8080`
|
|
269
|
-
- 📚 API docs: `http://0.0.0.0:8080/
|
|
270
|
-
- 📊 Langfuse dashboard: `http://
|
|
271
|
-
-
|
|
272
|
-
- 🤖 LiteLLM API: `http://localhost:4000`
|
|
273
|
-
- 📈 ClickHouse HTTP: `http://localhost:8123`
|
|
297
|
+
- 📚 API docs: `http://0.0.0.0:8080/docs`
|
|
298
|
+
- 📊 Langfuse dashboard: `http://0.0.0.0:3000`
|
|
299
|
+
- 🤖 LiteLLM API: `http://0.0.0.0:4000`
|
|
274
300
|
|
|
275
301
|
4. Stop services:
|
|
276
302
|
|
|
@@ -339,6 +365,8 @@ The project works with
|
|
|
339
365
|
## 📚 Useful Resources
|
|
340
366
|
|
|
341
367
|
- [LangGraph documentation](https://langchain-ai.github.io/langgraph/concepts/low_level/#multiple-schemas)
|
|
368
|
+
- [LangGraph Memory Concept](https://langchain-ai.github.io/langgraph/concepts/memory/)
|
|
369
|
+
- [How to create tools in Langchain](https://python.langchain.com/docs/how_to/custom_tools/)
|
|
342
370
|
- [Simple Serverless FastAPI with AWS Lambda](https://www.deadbear.io/simple-serverless-fastapi-with-aws-lambda/)
|
|
343
371
|
|
|
344
372
|
## 👥 Development and Contributing
|
{langgraph_agent_toolkit-0.1.1 → langgraph_agent_toolkit-0.2.0}/configs/litellm/config.example.yaml
RENAMED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
# https://docs.litellm.ai/docs/proxy/configs
|
|
1
|
+
# Proxy doc: https://docs.litellm.ai/docs/proxy/configs
|
|
2
|
+
# Caching doc: https://docs.litellm.ai/docs/proxy/config_settings
|
|
2
3
|
|
|
4
|
+
# list of supported models on the server, with model-specific configs
|
|
3
5
|
model_list:
|
|
4
6
|
- model_name: gpt-4o-mini
|
|
5
7
|
litellm_params:
|
|
@@ -16,11 +18,7 @@ model_list:
|
|
|
16
18
|
model_info:
|
|
17
19
|
supported_environments: ["development", "production", "staging"]
|
|
18
20
|
|
|
19
|
-
|
|
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
|
-
|
|
21
|
+
# list of credentials to be used by the models
|
|
24
22
|
credential_list:
|
|
25
23
|
- credential_name: default_azure_credential
|
|
26
24
|
credential_values:
|
|
@@ -30,6 +28,14 @@ credential_list:
|
|
|
30
28
|
credential_info:
|
|
31
29
|
description: "Production credentials for EU region"
|
|
32
30
|
|
|
31
|
+
# litellm Module settings
|
|
32
|
+
litellm_settings:
|
|
33
|
+
drop_params: True
|
|
34
|
+
num_retries: 2 # retry call 3 times on each model_name (e.g. zephyr-beta)
|
|
35
|
+
request_timeout: 40 # raise Timeout error if call takes longer than 10s. Sets litellm.request_timeout
|
|
36
|
+
allowed_fails: 3 # cooldown model if it fails > 1 call in a minute.
|
|
37
|
+
|
|
38
|
+
# litellm Router settings
|
|
33
39
|
router_settings: # router_settings are optional
|
|
34
40
|
routing_strategy: latency-based-routing # Literal["simple-shuffle", "least-busy", "usage-based-routing","latency-based-routing"], default="simple-shuffle"
|
|
35
41
|
model_group_alias: { "gpt-4": "gpt-3.5-turbo" } # all requests with `gpt-4` will be routed to models with `gpt-3.5-turbo`
|
|
@@ -39,5 +45,15 @@ router_settings: # router_settings are optional
|
|
|
39
45
|
redis_password: os.environ/REDIS_AUTH
|
|
40
46
|
redis_port: 1992
|
|
41
47
|
|
|
48
|
+
# Server settings
|
|
42
49
|
general_settings:
|
|
43
50
|
master_key: os.environ/LITELLM_MASTER_KEY
|
|
51
|
+
database_connection_pool_limit: 1000
|
|
52
|
+
database_connection_timeout: 60
|
|
53
|
+
store_model_in_db: True
|
|
54
|
+
store_prompts_in_spend_logs: True
|
|
55
|
+
# environment_variables:
|
|
56
|
+
# # settings for using redis caching
|
|
57
|
+
# REDIS_HOST: redis-16337.c322.us-east-1-2.ec2.cloud.redislabs.com
|
|
58
|
+
# REDIS_PORT: "16337"
|
|
59
|
+
# REDIS_PASSWORD:
|
|
@@ -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
|