Agents
Agents are the main building‑block of a multi-agent system. Each agent is a proxy for an LLM. Each agent has a set of tools and context. Each agent can use these tools and context to complete its task. In short, LLM is the brain of the agent, tools are the hands and context is the eyes. Agents has the following parameters that you can configure:
- Name – the name of the agent.
- Handoff Description – a description of what the agent can do. This description is used to decide which agent to delegate to. So a handoff description informs the parent agent about the capabilities of the child agent.
- Instructions – the system prompt that tells the agent who it is and how it should respond.
- Handoff Agents – a list of agents that the current agent can delegate to.
- Tools – a list of functions or APIs the model can invoke to accomplish a task. Depending on the type of the MAS, lookfor provides a set of useful tools for you to equip an agent of the MAS.
- Entry Agent – a boolean value that indicates if the agent is the entry point of the MAS.
- Model – determines how intelligent the agent is. The more intelligent the model, the more complex the agent can be. However, the more complex the agent, the more expensive it is to run in time and money.
- Tool Choice – “auto” (default), “required” or “none” – the agent decides whether to use a tool.
Why don’t lookfor configure agents for you?
Section titled “Why don’t lookfor configure agents for you?”Learning how to build multi-agent systems can be a bit scary at the beginning. Actually, they are very intuitive and easy to understand. As lookfor, we prepared everything for you. You just need to set up the MASs using our app. You may be wondering why we don’t configure agents for you. The reason is there are many different stores in Shopify. Each store has its own unique requirements. We can’t create a one-size-fits-all solution. Instead, what we provide is a framework and infrastructure that you can use to build and run your own MASs. This guide is a good starting point to learn how to build your own MASs but of course you can always ask us for help.
Context
Section titled “Context”Agents are equipped with a set of context. Context is a set of variables that are available to the agent.
The context is different for each type of the MAS. For example storefront MAS has customer.isLoggedIn
variable but an email MAS doesn’t have it becuase being logged in is not a concept in email.
You can find the list of the context variables for each type of the MAS here.
You can also use the context variables in the instructions.
Handoffs
Section titled “Handoffs”An Agent can delegate to other Agents. You select which agent an agent can delegate to when you create the agent. Back of the scene, a handoff is actually a tool that an agent can use to delegate to other agents. A common pattern is to use a triage agent that routes the conversation to a more specialised sub‑agent. However, there are many more patterns you can use. See the handoffs guide for more details.
Instructions
Section titled “Instructions”Instructions are the system prompt that tells the agent who it is and how it should respond. Depending of the type of the multi-agent system, we provide a set of variables that you can use in the instructions. As an example, for a storefront MAS, we provide the following variables:
customer.isLoggedIn
– whether the customer is logged in.customer.name
– the name of the customer.
You can say in the instructions that if customer.isLoggedIn
is true, you should say “Hello customer.name
”.
See the Writing Effective Agent Instructions guide to learn how to write good instructions.
An Agent is a proxy for an LLM. The model determines how intelligent the agent is. The more intelligent the model, the more complex the agent can be. However, the more complex the agent, the more expensive it is to run in time and money. There are three different models available for an agent:
- Express – fastest response time, lowest quality (can be used for simple tasks or triage agents)
- Core – the default model. It is a good choice for most tasks. Balanced quality and response time.
- Ultra – the slowest response time, highest quality. This model is different than express or core because it does reasoning by thinking step by step. It should only be used for complex tasks or agents that need to be very accurate because it may take longer to respond which causes the entire MAS to slow down.
See the models guide to learn more about models.
You can supply tools to an agent. Tools are functions or APIs that the agent can invoke to accomplish a task. There are many built-in tools available for agents. The available tools are different for each type of the MAS. There are many configuration options for the tools. Go to the tools guide to learn more about the tools. You can find the list of the tools for each type of the MAS here. You can also create your own API tools or propose new tools to us.