  -. -:  -     -
 


-   -:          .   ,  , , , RAG, , , guardrails, .  , -  .    : ,    .  ,    .





   -

-:   -      -



 



   GPT Image 2

  GPT Image 2



  , 2026



ISBN 978-5-0071-8661-2

     Ridero







  

          .    -    ,  RAG-  ,   ,  ,     ,  .      ,        .     :      ,     ,    ,   88%      .

  ,    .   ,  ,   ,        ,      ,   . Ÿ  :   ,   .     LLM    -   ;     , , ,  ,   governance.



  

   ,    ,     .

   .  ,     LLM           ,   .     ,  :     ,      .

   .  ,    ,     -.     ,  TCO  ROI,      ,    .

    .  ,   -  .     , LARA-     ,      .

   .  ,    .    , -      .

    .  ,        .   ,      :   -     .

      .       ,   :   ,    .



      

:

  :   ,   ,  ,   ?  ? ;

 : -,  ,  ,   ;

 :  ,   ,  , fallback, ;

 : evaluation harness   , trajectory-level ,  , negative witness;

 :  governed autonomy,   guardrails,  , HITL;

 :   OTel GenAI,   observability,   AgenticOps;

: TCO   , cost per resolved task, orchestration tax, ROI-  ;

  :   ,      ;

 :         ,      .

 :

 :     ,   ,    ;

 ROI:    ,     ,    ,   ;

 : ,      ,    ;

 :  ,      ,     ;

 :    ,   .



  

        .

 I.  ( 13).  -  :  , , , ,    .

 II. ,    ( 46). Tool use, , RAG:         .

 III.  ( 79).     ,   ,        .

 IV.  ( 1012). , ,  :       .

 V.  ( 1316).      ,   ,   .

 VI.  ( 1720).  , , , .

 VII.   ( 2122).    : - , A2A,  .

        -.

   ,     .   21     .



  

    ,       ,    .

 1. Single-agent assistant ( 16).    ,   RAG.   ,    .

 2. Specialized agent pipeline ( 79).     ,    .      .

 3. Multi-agent system in production ( 1022).    , , ,   .   .

     1,    .        .



 

               .     ,  :      ,    21    ,  .

   :   -    RAG     , guardrails, evaluation harness   .           .



  

.    :    ,    ,    .     .

 .     1,   16   13.   2    79.  3   .

 .      , ,            .   .

 .      .      ;     .



 

 .  ,  ,  ,  ,        ,    .    . ,    ,  ; ,      .

.  ,   (MCP, A2A), OWASP-, OTel semantic conventions,      .         2026 ,    .

.       .  SDK      .    ,      .



     

   .     , ,   ;   ,   .

,    .   ,         .

    .        ;      .

   .    governance,    .



  

         1.    ,     .

               20 ()   1 (- ),     ,   .

          17 ()   18 ().

         15 (guardrails)   5 ( Governed Autonomy).

  :   . Ÿ    ,    ,   ,   .




 I. :  -  





 1.  -     


     

.    :   ,     -        .

.   :

       LLM-   ;

      ,        ,     ;

   gap-  -  ,          ;

 ,             .



 

1.      -.        .

2.   ,   .     LLM     -,   ;   .

3.     ,      . -      .

4.      -   : ,  ,  (guardrails)  .

5.   ,   . Ÿ   ;        .

6.          :  ?   ?    .



1.1.   

     .        ,  ,   ;     .      ,   .          ,    .         .

 1. LLM-.      .  ,    ,     .    ,    ,     .

 2. RAG-.       .       .    ,    :  ? . RAG-  ,   ,    .

 3. Tool-using agent (  ).     :  ,   ,     .  ,      .      ;      4.   ,       .

 4.  .   ,   ,    .      ,    ,         .    3 :    ,        .

 5.  .          .     : , ,  ,  .      ,      .

  :     ;   ;      .        .



1.2.   

   .     ,     .   ,   ,  ,     .          ,     .

. ,    ,    ,    .       ,   .

.           .      ;     .

.       .      ,     .          .

.    : ,  ,  API,   .        .

 .       ,   .        ,    .

.    ,   ,        .      ,  :  ,  ,    .

  ?  ,      . :    ,        , +   .

LLM- ( 1)       . RAG- ( 2)  ,     :    ,       . Tool-using agent ( 3)   ,    ;     :     ,   ,     .   ( 4)      .   ( 5)          :       ,       , .

      :   ,   .

     :    ,    ,    ,     .

1.3.  -    

           .  -         :  ,   ,   ,  ,  .

- ,  , - ,    .    .         .      ,        .    ,      .     .

  ,   :

    .      .      :       ,   ,  .

   .   ,    ,     . ,   ,      .

    .       ,    ,    .        :  ,  ,   .

    .  ,    ;     .

     .    :    ,    API.      24.

#  2: RAG-   

def rag_bot (query):

docs = search (query) #  

return llm (f"  : {docs} \n: {query})

#  ,  ,   .



#  3: tool-using agent    

def agent (goal):

state = {goal: goal, steps: [], observations: []}

while not state.get (done):

action = llm_plan (state) #   

result = execute (action) #  

state [steps].append (action)

state [observations].append (result)

state [done] = llm_check (state) # ,   

return llm_answer (state)

#  , , ,  .

   LLM.   ,            .     ,    ,       .

1.4.  -   

-     ,     . -   :     .  ,       .

     ,    :

 .     ,     .

  .  ,  ,    .

  .   ,    ,    .

 .  ,   ,      .

  (guardrails).  ,   .

 .  ,  ,  -   .

 ,             2024  2026 .       .

 :       ,   12,   .     ,  ,      .

1.5.      

                   .

 1. Single-agent assistant.      .   3.   16.

 2. Specialized agent pipeline.       .     3   5.   79.

 3. Multi-agent system in production.    , ,   .   5.   1022.

      .    ,    ;   21     .       .      1,    .



1.6.    

    .     :      ,    ,    ,   (-)   .   ,   ,    .

 ,     10:  ,     ,               .   ,      ,         .    ,    .

      .            ,     ,    .  20    ;   ,      ,    .



. Gap- -

 :  -  ,   .  ,      , ,    .

.

1.   .   :     ;       ;     .        1.1.

2.    ?    .       , , .   ,     .

3.   .  -  35 ,    . :   ?   ?    ?   ?  .

4. .     ,          .    gap.

5.  /.  -   gap- ,  ,   . :     ,       .

6.  .     ,   :  ,  ,  ,  .

 .  - -:  ,  ,    gap-, 23  /,   .



- 

?          .

?     ,      .

?             .

?   ,  -    ,     .

?  ,      -.

?    ,     .

?   -      gap   /.



 

   ,       .     . ,     .

 ,     .   ,       :    ,    .

     .          ,     .   5.

    .  ,         .  ,  ;   7  10.

RAG-    . RAG   ,    .  2    3.



 

- -      ,    .    ,      .    ,      : , , , ,    .    ?   : ,    ( ).  Gap    .  /   ,   .     : , ,    .

       :  ,                .

      

 . -   :        gap-  .   gap-       .

 .  2   : ,   ?  ? ,  ReAct  Plan-and-Execute.        ,  -  - ,    .



  

1.  tool-using agent   RAG-  ,     ?

2.       ,  ?  ,   ,   .

3.      3         4?

4.         -,   ,        ?

5.  ,    ,  ,     .




 2.  :     


     

.       1   : ,     ,       ?  ?     .

.   :

       : LLM,  , , , , ,  ;

    ReAct  Plan-and-Execute      ;

     : , ,  ;

    -       ;

 ,        ,    -.



 

1.    ,   .  LLM     -,   ;      .

2.    ,    ;     .

3.   ?  ?      ;      ,    .

4. ReAct ,    ;     .

5. Plan-and-Execute     ,     ;   .

6.   : , ,  .     .

7.    :     (guardrails), ,     .



2.1.    

  1      : , , , ,  , .      ,    .   ,      .

   .      ,       .

     :      ;   LLM   ;   ;   ;       ;   .

    ,     : ,    ,    ,   .    ;   ,   .



2.2.  

          ,  ,     .    :  ,   .

LLM.    ,    :   .       .

 .      ,     .     .

.    , , , ;    ,   .     .

.      ,     .       .

.     ,      .      .

.     ,     .    .

 .      ,      .    .

    .

1. LLM. ,       .       .    ,         :    .          ;   .

2.  . ,  , ,      .    .       :        (  ),   .  3      .

3. . ,      :  , ,  , ,  .   ,     .     :    ,  ,     ,    .  5  6       RAG.

4. .       .      .         ;      .    :  ,  ,    .

5. .  : , ,  API, .      .     :  ,  ,    .    4.

6. .    ,   ,  ,     .    .           .

7.   (  ).  :  ,  ,  ,   , ,   .    .  ,     ;         LLM,     .

 :     .  LLM  ,    ,        ,      :   ,   .     ,     .       ,     .

2.3.  :  ?  ? 

      .

1.  .   ,   :  , , ,  .

2. .      :     ,    .

3. .   :  ,  ,  ,   .

4. .        .    :  ,   ,  .

     ,         .  :

             ;

     ,    ;

       ;

        ;

      ,   .

   .   ,    :    , limits     max_steps, max_seconds, max_tokens, tool_timeout.

def run_agent (goal, tool, system_prompt, limits):

state = {goal: goal, history: [], steps: 0,

started_at: now (), tokens_used: 0}

while not should_stop (state, limits):

context = build_context (system_prompt, state)

decision = llm (context) # 

state [tokens_used] += decision.tokens #   

if decision. type == answer:

state [history].append ({thought: decision.reasoning, action: answer})

return decision. text

try:

observation = tool.call(decision.name, decision.args, timeout=limits.tool_timeout)

except ToolError as e:

observation = f" : {e}

state [history].append ({thought: decision.reasoning, action: decision.name, observation: observation})

state [steps] += 1

return finish_with_reason (state, limits)



def should_stop (state, limits):

return (state [steps]> = limits.max_steps

or now ()  state [started_at]> = limits.max_seconds

or state [tokens_used]> = limits.max_tokens)

   . :             . :     ,   ;     ,     (  9).

2.4.  : ReAct  Plan-and-Execute

        .    ,     .

ReAct. ,           ;    .      :  ?  ?   .   :      .   :     ,       ,  . ReAct      ,     .

Plan-and-Execute.      N ,    .   :    ,       .        ,    .   :  ,    ,  .   :      3,   ,   .

  :

   :  ReAct ,  Plan-and-Execute    .   :  ReAct   ,  Plan-and-Execute       .  :  ReAct ,  Plan-and-Execute  .  :  ReAct ,  Plan-and-Execute  .  :  ReAct ,  Plan-and-Execute  .   : ReAct   , Plan-and-Execute    .  ,  : ReAct      , Plan-and-Execute      .

   .       Plan-and-Execute   .             ReAct ,    .

   ( ):   ReAct  ,  ,    ,   Plan-and-Execute   .       ReAct   ,    ,       1,   .       ReAct:       .

  .   1   tool-using agent ( 3)   :      .     :      4,  Plan-and-Execute    3,        .      10.



2.5.  

     ,       .

.                .         ,    .  :      13 ,    0,52 ,             1550    .     ;   ,     .       ,   .

.      .      ,    :  , , .   ,     .   N     ,    1.

 .         .    :     1        .    ,        ,    ;    14.

 :

    .    ,  ,   ,  .       .

  . Ƹ           .




  .


   .

   ,     (https://www.litres.ru/book/andrei-ladygin-34142017/sozdanie-i-primenenie-ii-agentov-kniga-konstruktor-ot-prost-75116312/)  .

      Visa, MasterCard, Maestro,    ,   ,     ,  PayPal, WebMoney, ., QIWI ,       .


