They are programs that are capable of creating intelligent outputs for any given task. Traditional software is designed for one specific thing and follows a sequential flow. Agents, however, dynamically prepare themselves to perform tasks and determine their own needs and actions. They are like general Machine Learning (ML) models, meaning you can use them for a variety of tasks.What do they do?
Understand requests
Classify and extract any kind of data (text, image, audio, and video)
Make decisions and generate intelligent outputs (as text, image, audio, or other output)
Connect to other tools and data to complete or assist operations (e.g., making requests to APIs, retrieving data, performing operations)
What are the parts of an agent?
Characterization: This is the most important part. Agents are like 1000 different experts, but for any given task, we only need a few of them. For this reason, we characterize them specifically for our tasks.
Reasoning: When agents engage in more extensive thinking, it leads to more accurate answers. Reasoning tools analyze operations, create plans, analyze tool and agent outputs, make revisions, and replan. We offer pre-built reasoning and thinking tools that you can enable in the required agents.
Memory: Just like humans, agents have the ability to store and retrieve information from previous operations. This allows them to customize and specify themselves according to user preferences, providing personalized answers.
Knowledge Base: In many cases, we have a lot of data to improve their answers. Sometimes we want to provide extensive information and then ask for specific parts of it. In such cases, we perform RAG (Retrieval Augmented Generation), and we have special search agents that we call Agentic Search for this feature.
Storage: We provide integrations to local and cloud storage options for storing memories and knowledge bases.
Agents are trying to complete their goals while making their tasks. So they are important for the overall requests.
Write the most important points for you: Like, care about the EU standards
Write the things which is the important for this role at your company
Design a Perfect Employee actually.
Good Goals:
Copy
goal="Provide actionable insights to business teams by analyzing product trends on merchant websites"goal="Ensure financial reports for EU fintech startups are complete and fully GDPR compliant"goal="Maintain up-to-date API documentation that consistently meets ISO 9001 standards"
Instructions guide your agent to act correctly and efficiently during its tasks. When writing instructions:
Include specific details relevant to the agent’s responsibilities.
Highlight the important points the agent should always consider while performing tasks.
Use clear, actionable language to avoid ambiguity.
Good Instructions:
Copy
instructions="Always check for GDPR compliance when handling user data."instructions="Summarize product trends in bullet points for easy review."instructions="Use WebSearch before WebRead to ensure you have the most up-to-date information."
Bad Instructions:
Copy
instructions="Be careful."instructions="Analyze the data."instructions="Do your best."
If you want to learn everything about Agent Concepts use here.
Let’s create an Agent that analyzes Merchant Websites
At Upsonic, we strive for simplicity and safety. With this in mind, we offer an Agent class that allows us to configure our Agent for specific purposes. In this example, we will create an agent that identifies merchant websites and analyzes their product offerings.
Copy
# Upsonic Docs: Create an Agent# https://docs.upsonic.ai/guides/create_an_agent# Importsfrom upsonic import Agent# Agent Creationmerchant_analyzer_agent = Agent( name="Merchant Analyzer V1", role="Analyzing the merchant websites.", goal="Getting the right result on their websites and giving as the user requested format", instructions=""" Identify and analyze the product's category and brand. If the product belongs to a series, pay special attention to series details and related products. Summarize product trends in clear bullet points for easy review. Prioritize up-to-date information and highlight any unusual patterns or outliers. """)