What is Agents?#
AI Agents are programs where LLM outputs control the workflow. People often describes a solution as “AI Solution” that involves any of the following:
- Multiple LLM calls
- LLMs with ability to use Tools
- An environment where LLMs interact with each other
- A planner to coordinate activities
- Autonomy
Difference between Workflow and Agents#
- Workflow - Systems where LLMs and tools are orchestrated through pre-defined code paths
- Agents - Systems where LLM dynamically direct their own processes and tool usage, maintaining control over how they accomplish tasks
Workflow Design Patterns#
- Prompt Chaining
Use cases: Flows that could be divided. For example, split a long story into four episode and then translate them into different languages.
!
- Routing
Use cases: ICMs, applying category tags, customer service calls.
!
- Parallelization
Use cases: Monitoring
!
4. Orchestrator-Worker
Use cases: Difficult tasks that needs to be solved in topological order, for example data analysis.
!
- Evaluation-Optimizer
Use cases: Translation and grammar check.
!
- Agents
!
Risk#
- Unpredictable Path
- Unpredictable Output
- Unpredictable Cost
Hands-On#
- How to setup environment to call endpoint
- Evaluation-Optimizer pattern demonstrate
- How to define tools and how LLM is using it
Read other posts