Skip to content
Draft
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
74c7525
fix: add missing openai serverless deployment to weekly tests
JohnPraveenYL May 5, 2026
822455d
fix: comment out unused AWS containerized tests in weekly schedule
JohnPraveenYL May 5, 2026
5be6fcb
fix: update Redis connection URLs in configuration files
JohnPraveenYL May 5, 2026
f477f5d
fix: increase memory size for Redis and DynamoDB Lambda functions; up…
JohnPraveenYL May 6, 2026
b530803
fix: comment out openai AWS serverless deployment in weekly tests
JohnPraveenYL May 6, 2026
9b05569
fix: enhance error handling for Terraform initialization and output r…
JohnPraveenYL May 6, 2026
fe12359
fix: restore AWS serverless deployment configuration and streamline T…
JohnPraveenYL May 6, 2026
5d2f158
fix: increase memory size for Redis Lambda functions to improve perfo…
JohnPraveenYL May 7, 2026
6dd6a39
fix: update model version and refine instructions for math agents
JohnPraveenYL May 7, 2026
bebc63b
fix: remove openai AWS serverless deployment from weekly test configu…
JohnPraveenYL May 7, 2026
d32a284
fix: disable tracing for CrewAI by setting environment variable
JohnPraveenYL May 8, 2026
274586b
fix: disable tracing for math and history agents in Lambda
JohnPraveenYL May 8, 2026
c22ab93
fix: pin deps to avoid ExecutionInfo import error`
JohnPraveenYL May 11, 2026
5caff09
fix: pin langgraph dependencies to specific versions to resolve compa…
JohnPraveenYL May 11, 2026
e2e12be
fix: update langchain-openai version and add langsmith dependency
JohnPraveenYL May 11, 2026
4f3a41a
fix: remove redundant import of os in lambda.py
JohnPraveenYL May 11, 2026
27c1d36
Merge branch 'develop' into Fix/Redis-Connection-Failure
JohnPraveenYL May 11, 2026
366b62e
fix: comment out redundant pip install command in build scripts
JohnPraveenYL May 11, 2026
5f00e30
update deploysh na dbuildsh
lakindu-yl May 11, 2026
2144af1
fix: update deployment scripts to use frozen requirements for consist…
JohnPraveenYL May 11, 2026
d9c58af
fix: update agent models to use 'gpt-4.1-mini' and increase memory si…
JohnPraveenYL May 12, 2026
25309ab
fix: update test assertion for math agent response
JohnPraveenYL May 12, 2026
6aa9df4
fix: remove frozen option from requirements export in deployment scripts
JohnPraveenYL May 12, 2026
fa9b8f6
fix: restore aws-containerized tests in weekly schedule
JohnPraveenYL May 12, 2026
9c2df0b
fix: remove unused Redis module from Terraform deployment
JohnPraveenYL May 12, 2026
b226bc9
fix: update build scripts to ensure proper Redis installation for ser…
JohnPraveenYL May 12, 2026
7c8b1ba
fix: standardize agent instructions for math questions across impleme…
JohnPraveenYL May 12, 2026
43fd47a
fix: move CREWAI_TRACING_ENABLED environment variable setting to the …
JohnPraveenYL May 12, 2026
c9fd522
fix: update Redis connection URL in config and streamline deployment …
JohnPraveenYL May 12, 2026
add948e
fix: add missing python-multipart dependency in pyproject.toml
JohnPraveenYL May 12, 2026
d538d73
fix: update langgraph version to 1.0.5 in dependencies and lock files
JohnPraveenYL May 12, 2026
6f0c8c7
fix: correct syntax in pyproject.toml and add python-multipart depend…
JohnPraveenYL May 12, 2026
20f20ae
update version for openai to support crewai
JohnPraveenYL May 13, 2026
f2be941
fix: update dependencies to include Redis in pyproject.toml and uv.lock
JohnPraveenYL May 13, 2026
a35c04f
fix: correct path in deploy script for finding links to ak-py/dist
JohnPraveenYL May 13, 2026
f4e7916
fix: update MCP client initialization to use environment variable for…
JohnPraveenYL May 13, 2026
ccc78cd
fix: update MCP client initialization to handle test endpoint correctly
JohnPraveenYL May 14, 2026
667139a
fix: enhance deployment script to ensure Redis dependencies are insta…
JohnPraveenYL May 14, 2026
ee7c97b
fix: update deployment scripts to force reinstall agentkernel depende…
JohnPraveenYL May 14, 2026
a9a5c7a
Merge branch 'Fix/Redis-Connection-Failure' of https://github.com/yaa…
JohnPraveenYL May 14, 2026
a2d24dd
fix: remove force-reinstall of agentkernel dependencies in deployment…
JohnPraveenYL May 14, 2026
aef8e98
fix: update build and deployment scripts to include crewai and langgr…
JohnPraveenYL May 14, 2026
3bcf93a
fix: update math and history agents to use GPT-4.1 model and refine i…
JohnPraveenYL May 14, 2026
9ac72df
fix: update math agent test to assert correct response format
JohnPraveenYL May 15, 2026
9978895
Merge branch 'develop' into Fix/Redis-Connection-Failure
lakindu-yl May 18, 2026
880cd22
python multipart updates
lakindu-yl May 19, 2026
6926dbe
Merge branch 'develop' into Fix/Redis-Connection-Failure
lakindu-yl May 19, 2026
1ecde59
Merge branch 'develop' into Fix/Redis-Connection-Failure
lakindu-yl May 20, 2026
2966819
langraph version made strict change reverted
lakindu-yl May 20, 2026
ddc2a65
reverted to develop toml file versions
lakindu-yl Jun 1, 2026
a3a7a21
python multipart updates
lakindu-yl May 19, 2026
1fef513
retained the develop versions of build.sh and deploy.sh files
lakindu-yl Jun 1, 2026
13eb088
crewai version update
lakindu-yl Jun 1, 2026
35c74c7
Merge branch 'develop' into Fix/Redis-Connection-Failure
lakindu-yl Jun 1, 2026
e9f95ff
examples/aws-containerized/mcp/multi uv.lock file regeration to updat…
lakindu-yl Jun 1, 2026
3f87212
lint fix
lakindu-yl Jun 1, 2026
5fa466a
lint
lakindu-yl Jun 1, 2026
b9eecf9
fix: lint
amithad Jun 2, 2026
023321b
adk session redis url fix
lakindu-yl Jun 2, 2026
751aa18
order fix
lakindu-yl Jun 2, 2026
4f06a8b
added langgraph dependency package versions as well
lakindu-yl Jun 2, 2026
57bb905
Revert "added langgraph dependency package versions as well"
lakindu-yl Jun 3, 2026
d1ca769
Merge branch 'develop' into Fix/Redis-Connection-Failure
lakindu-yl Jun 3, 2026
895cb57
ignore dist folders in pytest command
lakindu-yl Jun 3, 2026
963d182
pytest command ignore flag fix update
lakindu-yl Jun 4, 2026
4e645bc
bug fixes
lakindu-yl Jun 4, 2026
de5aa21
bug fixes
lakindu-yl Jun 4, 2026
247ee5d
update update
lakindu-yl Jun 4, 2026
f799fd3
updates to deploymenmts
lakindu-yl Jun 5, 2026
418610b
added multimodal to crewai test
lakindu-yl Jun 5, 2026
bb46dcc
to destroy resources
lakindu-yl Jun 5, 2026
4b43ea8
added rhe deployment commands in wrokflow file
lakindu-yl Jun 5, 2026
920a6ae
added redis url for response sotre
lakindu-yl Jun 5, 2026
bcc197c
added test to openai auth example
lakindu-yl Jun 5, 2026
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
2 changes: 1 addition & 1 deletion examples/aws-serverless/adk/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ session:
type: redis
redis:
prefix: "ak:adk:example:"
url: "redis://dev-examples-redis.qaandw.0001.apse2.cache.amazonaws.com:6379"
url: "redis://ak-openai-serverless-dev-examples-redis.qaandw.0001.apse2.cache.amazonaws.com:6379"
2 changes: 1 addition & 1 deletion examples/aws-serverless/adk/deploy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module "serverless_agents" {
region = var.region
vpc_id = var.vpc_id
private_subnet_ids = var.private_subnet_ids
memory_size = 512
memory_size = 1024
timeout = 60
product_display_name = "AK Google ADK Serverless Example"

Expand Down
8 changes: 4 additions & 4 deletions examples/aws-serverless/adk/lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
# Math specialist agent
math_agent = Agent(
name="math",
model=LiteLlm(model="openai/gpt-4o-mini"),
model=LiteLlm(model="openai/gpt-4.1-mini"),
description="Specialist agent for math questions",
instruction="""
You provide help with math problems.
Explain your reasoning at each step and include examples.
no reasoning and no need for steps explanation. Just give the final answer.
If prompted for anything else you refuse to answer.
Comment thread
JohnPraveenYL marked this conversation as resolved.
Outdated
""",
)

# General purpose agent
history_agent = Agent(
name="history",
model=LiteLlm(model="openai/gpt-4o-mini"),
model=LiteLlm(model="openai/gpt-4.1-mini"),
description="Agent for history questions",
instruction="""
You provide assistance with history queries.
Expand All @@ -28,7 +28,7 @@

triage_agent = LlmAgent(
name="triage",
model=LiteLlm(model="openai/gpt-4o-mini"),
model=LiteLlm(model="openai/gpt-4.1-mini"),
description="Agent that routes the user to the appropriate specialist agent (math or history).",
instruction="""
You determine which agent to use based on the user's question.
Expand Down
2 changes: 1 addition & 1 deletion examples/aws-serverless/crewai/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ logging:
session:
type: redis
redis:
prefix: "ak:langgraph:example:"
prefix: "ak:crewai:example:"
url: "redis://ak-openai-serverless-dev-examples-redis.qaandw.0001.apse2.cache.amazonaws.com:6379"
3 changes: 1 addition & 2 deletions examples/aws-serverless/crewai/deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ create_deployment_package() {
if [[ ${1-} != "local" ]]; then
uv pip install -r requirements.txt --target=dist/data
else
uv pip install -r requirements.txt --target=dist/data --find-links ../../../ak-py/dist
uv pip install --force-reinstall --target=dist/data --find-links ../../../ak-py/dist agentkernel[redis,crewai,test] || true
uv pip install -r requirements.txt --target=dist/data --find-links ../../../ak-py/dist
fi
cp -r lambda.py config.yaml dist/data
popd || exit 1
Expand Down
2 changes: 1 addition & 1 deletion examples/aws-serverless/crewai/deploy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module "serverless_agents" {
region = var.region
vpc_id = var.vpc_id
private_subnet_ids = var.private_subnet_ids
memory_size = 512
memory_size = 1024
timeout = 60
product_display_name = "AK CrewAI Serverless Example"

Expand Down
10 changes: 9 additions & 1 deletion examples/aws-serverless/crewai/lambda.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
import os

from agentkernel.aws import Lambda
from agentkernel.crewai import CrewAIModule

os.environ["CREWAI_TRACING_ENABLED"] = "false"

Comment thread
JohnPraveenYL marked this conversation as resolved.
Outdated
from crewai import Agent

math_agent = Agent(
role="math",
goal="Specialist agent for math questions",
backstory="You provide help with math problems. Explain your reasoning at each step and include examples. \
backstory="You provide help with math problems. no reasoning and no need for steps explanation. Just give the final answer. \
If prompted for anything else you refuse to answer.",
Comment thread
JohnPraveenYL marked this conversation as resolved.
Outdated
verbose=False,
tracing=False,
model="openai/gpt-4.1-mini",
)

history_agent = Agent(
role="history",
goal="Specialist agent for historical questions",
backstory="You provide assistance with historical queries. Explain important events and context clearly.",
verbose=False,
tracing=False,
model="openai/gpt-4.1-mini",
)

CrewAIModule([math_agent, history_agent])
Expand Down
2 changes: 1 addition & 1 deletion examples/aws-serverless/crewai/lambda_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ async def http_client():
@pytest.mark.order(1)
async def test_math_agent(http_client):
response = await http_client.send("What is 23 multiplied by 17?")
Test.compare(response, ["23 multiplied by 17 equals 391"])
Test.compare(response, ["391"])
2 changes: 1 addition & 1 deletion examples/aws-serverless/langgraph/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ if [[ ${1-} != "local" ]]; then
uv sync --all-extras
else
# For local development of agentkernel, you can force reinstall from local dist
uv sync --find-links ../../../ak-py/dist --all-extras
uv sync --find-links ../../../ak-py/dist --all-extras
uv pip install --force-reinstall --find-links ../../../ak-py/dist agentkernel[redis,langgraph,test] || true
fi
3 changes: 1 addition & 2 deletions examples/aws-serverless/langgraph/deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ create_deployment_package() {
if [[ ${1-} != "local" ]]; then
uv pip install -r requirements.txt --target=dist/data
else
uv pip install -r requirements.txt --target=dist/data --find-links ../../../ak-py/dist
uv pip install --force-reinstall --target=dist/data --find-links ../../../ak-py/dist agentkernel[langgraph,redis,test] || true
uv pip install -r requirements.txt --target=dist/data --find-links ../../../ak-py/dist
fi
cp -r lambda.py custom_agent.py config.yaml dist/data
popd || exit 1
Expand Down
2 changes: 1 addition & 1 deletion examples/aws-serverless/langgraph/deploy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module "serverless_agents" {
region = var.region
vpc_id = var.vpc_id
private_subnet_ids = var.private_subnet_ids
memory_size = 512
memory_size = 1024
product_display_name = "AK Langraph Serverless Example"

# Environment variables passed to lambda
Expand Down
2 changes: 1 addition & 1 deletion examples/aws-serverless/langgraph/lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from custom_agent import CustomAgent
from langgraph.prebuilt import create_react_agent

model = ChatOpenAI(model="gpt-4o-mini", temperature=0.0)
model = ChatOpenAI(model="gpt-4.1-mini", temperature=0.0)

# Math agent: Handles mathematical problems and calculations
# Uses LangGraph's ReAct framework to provide step-by-step mathematical solutions
Expand Down
11 changes: 8 additions & 3 deletions examples/aws-serverless/langgraph/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ name = "aws-serverless-langgraph"
version = "0.1.0"
description = "Demo of LangGraph based agents running in Agent Kernel on AWS Lambda"
readme = "README.md"
requires-python = ">=3.12"
requires-python = ">=3.12,<3.13"
dependencies = [
"agentkernel[langgraph,redis]>=0.4.0",
"langchain-litellm>=0.2.2",
"langchain-openai>=0.3.28",
"langchain-openai==1.1.6",
"langgraph==1.0.5",
Comment thread
JohnPraveenYL marked this conversation as resolved.
Outdated
"langgraph-checkpoint==3.0.1",
"langgraph-prebuilt==1.0.5",
"langgraph-sdk==0.3.1",
"langgraph-supervisor>=0.0.29",
"openai>=1.99.1",
"langsmith==0.5.0",
"openai>=1.99.1",
]

[dependency-groups]
Expand Down
Loading
Loading