From c514605f7fb743b673e39cd97f6ef0287c5cc866 Mon Sep 17 00:00:00 2001
From: Li Yin
Date: Thu, 11 Jul 2024 00:15:22 -0700
Subject: [PATCH] fix code error in the agent tutorial
---
.github/workflows/documentation.yml | 2 +-
docs/source/developer_notes/agent.rst | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml
index fd2d6971..aecce85b 100644
--- a/.github/workflows/documentation.yml
+++ b/.github/workflows/documentation.yml
@@ -3,7 +3,7 @@ name: Documentation
on:
push:
branches:
- - release # Trigger the workflow when changes are pushed to the release branch
+ - li # Trigger the workflow when changes are pushed to the release branch
permissions:
contents: write
diff --git a/docs/source/developer_notes/agent.rst b/docs/source/developer_notes/agent.rst
index 90e46e91..9a39767c 100644
--- a/docs/source/developer_notes/agent.rst
+++ b/docs/source/developer_notes/agent.rst
@@ -353,8 +353,8 @@ Now, let's run the test function to see the agent in action.
.. code-block:: python
- test_react_agent(ModelClientType.GROQ, llama3_model_kwargs)
- test_react_agent(ModelClientType.OPENAI, gpt_model_kwargs)
+ test_react_agent(ModelClientType.GROQ(), llama3_model_kwargs)
+ test_react_agent(ModelClientType.OPENAI(), gpt_model_kwargs)
Our agent will show the core steps for developers via colored printout, including input_query, steps, and the final answer.
The printout of the first query with llama3 is shown below (without the color here):