Skip to content

Commit a0ab4fe

Browse files
committed
readme, tests
1 parent 50d70a4 commit a0ab4fe

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
push:
88
branches:
99
- main
10+
schedule:
11+
- cron: '0 0 * * 1' # Runs every Monday
1012

1113
jobs:
1214
test:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ An estimated 31% of LLM queries are potentially redundant ([source](https://arxi
8585
| --- | --- |
8686
[/agents/00_langgraph_redis_agentic_rag.ipynb](python-recipes/agents/00_langgraph_redis_agentic_rag.ipynb) | Notebook to get started with lang-graph and agents |
8787
[/agents/01_crewai_langgraph_redis.ipynb](python-recipes/agents/01_crewai_langgraph_redis.ipynb) | Notebook to get started with lang-graph and agents |
88+
[/agents/02_full_featured_agent.ipynb](python-recipes/agents/02_full_featured_agent.ipynb) | Notebook builds full tool calling agent with semantic cache and router |
8889

8990
### Computer Vision
9091
| Recipe | Description |

python-recipes/agents/02_full_featured_agent.ipynb

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
}
7171
],
7272
"source": [
73+
"# NBVAL_SKIP\n",
7374
"import getpass\n",
7475
"import os\n",
7576
"\n",
@@ -173,7 +174,7 @@
173174
"REDIS_URL = os.getenv(\"REDIS_URL\", \"redis://localhost:6379\")\n",
174175
"\n",
175176
"client = Redis.from_url(REDIS_URL)\n",
176-
"client.ping()\n"
177+
"client.ping()"
177178
]
178179
},
179180
{
@@ -501,7 +502,6 @@
501502
"outputs": [],
502503
"source": [
503504
"from typing import Literal, TypedDict\n",
504-
"\n",
505505
"from langgraph.graph import END, StateGraph\n",
506506
"\n",
507507
"\n",
@@ -526,7 +526,6 @@
526526
"\n",
527527
"# Add nodes\n",
528528
"workflow.add_node(\"agent\", call_tool_model)\n",
529-
"\n",
530529
"workflow.add_node(\"tools\", tool_node)\n",
531530
"workflow.add_node(\"structure_response\", structure_response)\n",
532531
"\n",
@@ -542,13 +541,10 @@
542541
"\n",
543542
"\n",
544543
"# We now add a normal edge from `tools` to `agent`.\n",
545-
"# This means that after `tools` is called, `agent` node is called next.\n",
546544
"workflow.add_edge(\"tools\", \"agent\")\n",
547-
"# workflow.add_edge(\"multi_choice_structured\", END)\n",
548545
"workflow.add_edge(\"structure_response\", END)\n",
549546
"\n",
550547
"\n",
551-
"# Finally, we compile it!\n",
552548
"# This compiles it into a LangChain Runnable,\n",
553549
"# meaning you can use it as you would any other runnable\n",
554550
"graph = workflow.compile()\n"
@@ -641,7 +637,9 @@
641637
"cell_type": "markdown",
642638
"metadata": {},
643639
"source": [
644-
"## Scenario 2"
640+
"## Scenario 2 - restocking tool\n",
641+
"\n",
642+
"In this test we want to see the agent choose the restocking tool and choose to use the multiple choice output."
645643
]
646644
},
647645
{
@@ -693,7 +691,9 @@
693691
"cell_type": "markdown",
694692
"metadata": {},
695693
"source": [
696-
"## Scenario 3"
694+
"## Scenario 3 - retriever tool\n",
695+
"\n",
696+
"In this test, we want to see the retrieval tool invoked and multiple choice structured response."
697697
]
698698
},
699699
{
@@ -981,13 +981,6 @@
981981
" \n",
982982
" return graph.invoke({\"messages\": question})\n"
983983
]
984-
},
985-
{
986-
"cell_type": "code",
987-
"execution_count": null,
988-
"metadata": {},
989-
"outputs": [],
990-
"source": []
991984
}
992985
],
993986
"metadata": {

0 commit comments

Comments
 (0)