@@ -27,7 +27,7 @@ performs the same process. The user asks a question that is beyond the training
2727date of the LLM. The application uses the framework to implement an agent
2828pattern to automatically call functions when it needs new information.
2929
30- Here's how the question "What is the latest version of Elasticsearch 8 ?" ends up
30+ Here's how the question "What is the latest version of Elasticsearch 9 ?" ends up
3131being answered.
3232
3333``` mermaid
@@ -36,23 +36,23 @@ sequenceDiagram
3636 participant LLM
3737
3838 Note over Agent: Framework sends its tools along with the prompt
39- Agent ->> LLM: user: "What is the latest version of Elasticsearch 8 ?"
39+ Agent ->> LLM: user: "What is the latest version of Elasticsearch 9 ?"
4040 activate LLM
4141 Note over LLM: LLM determines it needs to use a tool to complete the task
4242
43- LLM ->> Agent: assistant: {"function": {"name": "get_latest_elasticsearch_version", "arguments": "{\"majorVersion\": 8 }"}}
43+ LLM ->> Agent: assistant: {"function": {"name": "get_latest_elasticsearch_version", "arguments": "{\"majorVersion\": 9 }"}}
4444 deactivate LLM
4545 activate Agent
46- Note over Agent: invokes get_latest_elasticsearch_version(majorVersion=8 )
46+ Note over Agent: invokes get_latest_elasticsearch_version(majorVersion=9 )
4747
48- Agent ->> LLM: [user, assistant, tool: "8.19.3 "]
48+ Agent ->> LLM: [user, assistant, tool: "9.1.5 "]
4949 Note over Agent: LLM is stateless, the tool result is sent back with prior messages
5050 deactivate Agent
5151 activate LLM
5252
53- LLM ->> Agent: content: "The latest version of Elasticsearch 8 is 8.19.3 "
53+ LLM ->> Agent: content: "The latest version of Elasticsearch 9 is 9.1.5 "
5454 deactivate LLM
55- Note over Agent: "The latest version of Elasticsearch 8 is 8.19.3 "
55+ Note over Agent: "The latest version of Elasticsearch 9 is 9.1.5 "
5656```
5757
5858The GenAI framework not only abstracts the above loop, but also LLM plugability
@@ -173,21 +173,21 @@ sequenceDiagram
173173
174174 create participant LLM
175175
176- Agent->>LLM: user: "What is the latest version of Elasticsearch 8 ?"
176+ Agent->>LLM: user: "What is the latest version of Elasticsearch 9 ?"
177177 activate LLM
178- LLM->>Agent: assistant: {"function": {"name": "get_latest_elasticsearch_version", "arguments": "{\"majorVersion\": 8 }"}}
178+ LLM->>Agent: assistant: {"function": {"name": "get_latest_elasticsearch_version", "arguments": "{\"majorVersion\": 9 }"}}
179179 deactivate LLM
180180 activate Agent
181181
182182 rect rgb(191, 223, 255)
183- Agent->>+MCP: tools/call: {get_latest_elasticsearch_version, {majorVersion: 8 }}
184- MCP-->>-Agent: response: {output: "8.19.3 "}
183+ Agent->>+MCP: tools/call: {get_latest_elasticsearch_version, {majorVersion: 9 }}
184+ MCP-->>-Agent: response: {output: "9.1.5 "}
185185 end
186186
187- Agent->>LLM: [user, assistant, tool: "8.19.3 "]
187+ Agent->>LLM: [user, assistant, tool: "9.1.5 "]
188188 deactivate Agent
189189 activate LLM
190- LLM->>Agent: content: "The latest version of Elasticsearch 8 is 8.19.3 "
190+ LLM->>Agent: content: "The latest version of Elasticsearch 9 is 9.1.5 "
191191 deactivate LLM
192192```
193193
0 commit comments