AI Agents Specialization
Developing an agent system through AI is not trivial given the plurality of available frameworks; below is a list of the most widespread ones:
Building From Scratch
Yes, you can definitely build AI agents from scratch! Below the course:
Leveraging on LangChain
LangChain, with its impressive 90k GitHub stars, stands as the leading framework for developing LLM-based applications. Its extensive suite of tools and components enables the creation of comprehensive AI solutions using a wide range of LLMs. Central to LangChain’s functionality are its agents. These autonomous or semi-autonomous tools can execute tasks, make decisions, and interact with various tools and APIs, marking a significant advancement in automating complex workflows with LLMs.
The following code starts an agent with 2 tools and ask question about book wrote by me:
!pip install arxiv
from langchain.agents.agent_toolkits import create_python_agent
from langchain.agents import load_tools, initialize_agent
from langchain.agents import AgentType
from langchain.chat_models import ChatOpenAI
llm = ChatOpenAI(temperature=0, model="gpt-3.5-turbo")
tools = load_tools(["llm-math","wikipedia","arxiv"], llm=llm)
agent= initialize_agent(
tools,
llm,
agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,
handle_parsing_errors=True,
verbose = True)
question = "Giacomo Veneri is an italian author, which article he wrote?"
result = agent(question)
Below the courses:
-
LangChain for LLM Application Development by DeepLearning.AI & LangChain
-
Fundamentals of AI Agents Using RAG and LangChain by Coursera & IBM
..or LangGraph
An advanced framework is LangGraph
Microsoft Autogen
Autogen is an open-source framework (by Microsoft Research) designed for creating agentic systems. This framework allows you to build multi-agent collaborations and LLM workflows efficiently.
You can find a lot of examples.
Below the courses:
crewAI
CrewAI stands out as a leading agent-based AI framework, enabling rapid development of AI agents and seamless integration with the latest LLMs and your existing codebase. Trusted by major corporations such as Oracle, Deloitte, Accenture, and more, CrewAI is a reliable choice for many.
Below the courses:
LlamaIndex
A very useful example how to parse Invoice and send payment Invoice to Payment
Below the courses:
OpenAI Swarm
OpenAI Swarn is nn educational framework exploring ergonomic, lightweight multi-agent orchestration.
SuperAgentX
SuperAgentX is a lightweight, open-source AI framework built for multi-agent applications with Artificial General Intelligence (AGI) capabilities.
Github:
…. and more
Do not forget