From 6557d9345694bf80924f4b9ed80ee72963270500 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Fri, 4 Oct 2024 21:52:44 +0000 Subject: [PATCH] Add a mermaid flowchart to illustrate user interaction in LLM agents blog post --- docs/src/content/docs/blog/llm-agents.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/src/content/docs/blog/llm-agents.md b/docs/src/content/docs/blog/llm-agents.md index ca0e6152db..3201bac202 100644 --- a/docs/src/content/docs/blog/llm-agents.md +++ b/docs/src/content/docs/blog/llm-agents.md @@ -1,7 +1,7 @@ --- title: "LLM Agents" date: 2024-10-04 -authors: +authors: - genaiscript - pelikhan tags: ["genai", "interactive", "agent", "user-input", "questions"] @@ -12,6 +12,17 @@ GenAIScript defines an **agent** as a [tool](/genaiscript/reference/scripts/tool runs an [inline prompt](/genaiscript/reference/scripts/inline-prompts) to accomplish a task. The agent LLM is typically augmented with additional tools. +```mermaid +flowchart TD + query["query"] --> |"confirm with user"| LLM + + LLM --> |"ask user to confirm yes or no"| agent_user_LLM + subgraph agent["agent user (tool)"] + agent_user_LLM["agent LLM"] --> user_tools["user confirm (tool)"] + end + user_tools --> |"are you sure? Yes"| user +``` + In this blog post, we'll walk through building a `user interaction agent` that enables the agent to ask questions to the user. ```js wrap