Skip to main content

How does an agent work?

When an agent receives a user query, it acts in an "agentic loop":

In this video, you can see how the agentic loop looks in action.(Note: LLM and agent are NOT interchangeable terms. An agent uses an LLM. More on this topic here: difference between an LLM and an agent)

  1. User Query
  2. Agent's turn starts
  3. LLM sends message to user
  4. LLM calls a tool with an input
  5. Agent generates output
  6. LLM repeats tool call and sending message to user
  7. LLM generates the final content and the agent saves it in a downloadable PDF
  8. Agent's turn ends
How the SAP Research Agent processes a query using the agentic loop

The SAP Research Agent has access to three tools:

  • Search SAP system
  • Search the web
  • Create document

If you want to see how the agent works for your use case, you may try it using this link for free: https://research.getadri.ai