Skip to content

Commit e1d2fba

Browse files
committed
Update Blog “llm-agentic-tool-mesh-harnessing-agent-services-and-multi-agent-ai-for-next-level-gen-ai”
1 parent 122142d commit e1d2fba

File tree

1 file changed

+87
-12
lines changed

1 file changed

+87
-12
lines changed

content/blog/llm-agentic-tool-mesh-harnessing-agent-services-and-multi-agent-ai-for-next-level-gen-ai.md

Lines changed: 87 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ In the context of Large Language Models (LLMs), an agent is an autonomous entity
2929
These agents can operate independently or interact with one another to optimize their collective performance, depending on the complexity of the task.
3030
In fact, multi-agent AI involves coordinating multiple agents, each specialized in a specific domain or function, to collaborate and achieve a common goal. These agents handle:
3131

32-
* **Task Division**: Dividing complex tasks into manageable parts.
32+
* **Task division**: Dividing complex tasks into manageable parts.
3333
* **Specialization**: Each agent specializes in a particular function, such as information retrieval or decision-making.
3434
* **Collaboration**: Agents communicate and share information for effective and efficient task execution.
3535

@@ -115,19 +115,22 @@ Architecture Overview:
115115

116116
![](/img/reasoning.png)
117117

118-
### Task force multi-agents
118+
### Task force
119+
120+
The **multi-agents task force** service enables the orchestration of complex tasks through a network of specialized agents. This service allows users to define a structured workflow where each agent is assigned a specific task, executed in sequence or parallel.
119121

120-
The Task Force Multi-Agents service enables the orchestration of complex tasks through a network of specialized agents. This service allows users to define a structured workflow where each agent is assigned a specific task, executed in sequence or parallel.
121122
Key Features:
122-
• LLM-Driven Planning: Integrates with an LLM to plan task sequences, ensuring intelligent coordination.
123-
• Agent Specialization: Each agent specializes in a particular task, tailored through prompts defining their role, backstory, and goals.
124-
• Task-Oriented Workflow: Supports both sequential and parallel task execution, configurable through prompts and configuration files.
125-
• Tool Integration: Agents utilize a suite of tools to complete their tasks, dynamically loaded and executed during task completion.
123+
124+
* **LLM-driven planning**: Integrates with an LLM to plan task sequences, ensuring intelligent coordination.
125+
* **Agent specialization**: Each agent specializes in a particular task, tailored through prompts defining their role, backstory, and goals.
126+
* **Task-oriented workflow**: Supports both sequential and parallel task execution, configurable through prompts and configuration files.
127+
* **Tool integration**: Agents utilize a suite of tools to complete their tasks, dynamically loaded and executed during task completion.
128+
126129
Example Usage:
130+
```python
127131
from athon.agents import TaskForce
128132

129133
# Configuration for the Task Force Multi-Agents
130-
131134
TASK_FORCE_CONFIG = {
132135
'type': 'CrewAIMultiAgent',
133136
'plan_type': 'Sequential',
@@ -155,18 +158,90 @@ TASK_FORCE_CONFIG = {
155158
}
156159

157160
# Initialize the Task Force
158-
159161
task_force = TaskForce.create(TASK_FORCE_CONFIG)
160162
Running the task force with an input message:
161163

162164
# Run the task force with an input message
163-
164165
input_message = "Write a blog post about the importance of renewable energy."
165166
result = task_force.run(input_message)
166167

167168
# Handle the response
168-
169169
if result.status == "success":
170170
print(f"COMPLETION:\n{result.completion}")
171171
else:
172-
print(f"ERROR:\n{result.error_message}")
172+
print(f"ERROR:\n{result.error_message}")
173+
```
174+
175+
## LLM Agentic Tool Mesh in Action: Examples from the Repository
176+
177+
178+
The LLM Agentic Tool Mesh GitHub repository includes several examples demonstrating the versatility and capabilities of the agent services.
179+
180+
181+
### Chatbot application (examples/app_chatbot)
182+
183+
This chatbot is capable of reasoning and invoking appropriate LLM tools to perform specific actions. You can configure the chatbot using files that define LLM Agentic Tool Mesh platform services, project settings, toolkits, and memory configurations. The web app orchestrates both local and remote LLM tools, allowing them to define their own HTML interfaces, supporting text, images, and code presentations.
184+
185+
186+
Configuration Example:
187+
188+
```yaml
189+
190+
projects:
191+
- name: "Personal Chat"
192+
memory:
193+
type: LangChainBuffer
194+
memory_key: chat_history
195+
return_messages: true
196+
tools:
197+
- "https://127.0.0.1:5002/" # Basic Copywriter
198+
- name: "Project 5G Network"
199+
memory:
200+
type: LangChainRemote
201+
memory_key: chat_history
202+
return_messages: true
203+
base_url: "https://127.0.0.1:5010/"
204+
timeout: 100
205+
cert_verify: false
206+
tools:
207+
- "https://127.0.0.1:5005/" # OpenAPI Manager
208+
- "https://127.0.0.1:5006/" # IMS Expert
209+
- name: "Project Meteo"
210+
memory:
211+
type: LangChainBuffer
212+
memory_key: chat_history
213+
return_messages: true
214+
tools:
215+
- "https://127.0.0.1:5003/" # Temperature Finder
216+
- "https://127.0.0.1:5004/" # Temperature Analyzer
217+
```
218+
219+
220+
### OpenAPI manager (examples/tool_agents)
221+
222+
223+
The OpenAPI Manager is a multi-agent tool that reads OpenAPI documentation and provides users with relevant information based on their queries. It uses the Task Force service to answer questions related to 5G APIs.
224+
225+
226+
Capabilities:
227+
228+
229+
* ListOpenApis: Lists all OpenAPI specifications present in the system.
230+
* SelectOpenApi: Selects a specific OpenAPI specification.
231+
* GetOpenApiVersion: Returns the OpenAPI version of the selected specification.
232+
* GetInfo: Returns the information dictionary of the selected specification.
233+
* GetMethodsByTag: Lists all methods of the selected specification for a specific tag.
234+
* GetMethodById: Returns detailed information about a method selected by ID.
235+
* GetRequestBody: Returns the request body schema of the selected specification.
236+
* GetResponse: Returns the response schema of the selected specification.
237+
238+
239+
240+
Conclusion
241+
242+
243+
The LLM Agentic Tool Mesh Agent Services exemplify how advanced design principles and innovative prompt engineering simplify and enhance the adoption of Gen AI. By abstracting complexities and providing versatile examples, LLM Agentic Tool Mesh enables developers and users alike to unlock the transformative potential of Gen AI in various domains.
244+
245+
246+
Stay tuned for our next post, where we'll explore another key service of LLM Agentic Tool Mesh and continue our journey to democratize Gen AI!
247+

0 commit comments

Comments
 (0)