4FPFZFn3oU8YfV6M9R9PsQmMmOqOfQpPmPiNnPqN9PpOqPxNnPsPNZmNtRSOCIETEGENERALE GROUPGlobalSoftwareGenerative Al 401: Agents (under the hood)Although the conceptof Al Agents startedtopopularize around late 2023/2024,itsMark L. Moerdler, Ph.D.+19173448506potential really came to liferecentlywith the release of products like Claude Code/mark.moerdler@bernsteinsg.comCowork, OpenAl Codex/Agent Builder,and OpenClaw.In thisprimer, given the amount oftechnicalities,wetrytopeel offthejargon and packaging ofagentic systems andexplainFiroz Vallji, CFAwhat is going on under the hood.+19173448316firoz.vallji@bernsteinsg.comAl agents are built on top of the basic LLM models and are likelyto become an importantShelly Tang, CFApartofthe application layer of the Al software tech stack.Compared toa basic LLM+19173448342thatcannotremember,has stale information,cannotperformactions andhallucinatesshelly.tang@bernsteinsg.comknowledge, context, data, tools, rules and guidelines.The easiest way to understand how agents work is this: During inference,the basic LLMdoes not have any knowledge beyond its training data and user input, so how to supplytheLLMmorecontexttohelp itsucceed at atask?The answeristo dumpeverything itneeds to know in the input including: user information, business context, how to break downthe steps, what tools are required and how to use them, and relevant data such as login,password, customer and order details etc. This is known as the context.However, the context window space is limited, so the brute force way of ingesting all theinformation in the input soon feels overwhelming as the variety of tasks and complexityscale.Tobetter organize andoptimize the context supplied during each task,engineershaveparsed outparts ofthecontext into differentmodules.Namely,short-termmemory,long-termmemory,Tools and rules/Workflows/Skills.These agentic components are evolving fast and might morph into something elsetomorrow. However, the key themes underpinning this era of Gen Al developmentis that 1)we aremoving from building inside an LLMto building around an LLM,which means thatagentic Al could unlock model capability but does not imply model improvement; 2) we aremovingfroma moregeneralizedapproachtoamorespecializedapproachto enhancetask performance. The amount of design and engineering choices that go into building anagent, webelieve,signals that step-function breakthroughsmight take longerthan duringthe pretraining scaling era.We are excited about the future of Agentic Al, and believe that by finding the perfectbalancebetween determinism (consistency)andnon-determinism (flexibility)foreachtypeofworkflow,agentic Al can open upa lotmore newuse casesfor software.Atthe sametime, it is important to recognize the amount of complexity and work that goes into settinglong contextperformance andmulti-agent communications,webelievethedevelopmenttimeline for customized agents will take time, longer than many think and will require moreexperts (thus the need fo...