Skip to content

Commit

Permalink
Add a mermaid flowchart to illustrate user interaction in LLM agents …
Browse files Browse the repository at this point in the history
…blog post
  • Loading branch information
pelikhan committed Oct 4, 2024
1 parent 3ed6219 commit 6557d93
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/src/content/docs/blog/llm-agents.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "LLM Agents"
date: 2024-10-04
authors:
authors:
- genaiscript
- pelikhan
tags: ["genai", "interactive", "agent", "user-input", "questions"]
Expand All @@ -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
Expand Down

0 comments on commit 6557d93

Please sign in to comment.