Agentic AI - Series 3
In this blog we will see how to build a simple agent without using any LLM model.
Simple flow of an agent:
Agent takes input -> Based on the input, it decides which tool to use -> Performs operation and send the output back to the user.
An AI agent framework is a set of tools, libraries, and structures that simplifies building, deploying, and managing autonomous AI agents.
But, here we are going to build an agent without using any framework and LLM's.
Agent functionality is to perform "Addition" and "Subtraction".
Agent uses 2 python functions (Tools) to perform addition and subtraction operations.
Finally, it send the output to the user.
We are going to implement the above discussed functionality via Python.
Tool for performing math operations:
Tool for processing user input:
Finally our agent definition:
1) Agent takes user input.
2) Decides what action to perform (add) or (sub) from the input.
3) Extract the numbers from the given the input.
4) Based on the action, respective tool (function) will be invoked.
5) Return the results to the user.
In the next series, we will see how to build an agent using a famous framework called "Langchain".

Comments
Post a Comment