Skip to content

Взаимодействие с LLM¤

Без Агента¤

sequenceDiagram User ->> LLM: Question LLM ->> User: Answer

С Агентом¤

sequenceDiagram actor User User ->>+ Agent: Ask question Agent --> Agent: Choose Prompt Agent --> Agent: Get Functions List Agent ->> LLM: Send Question + Functions List LLM --> LLM: Is Function Needed? alt Is Needed LLM --> LLM: Choose Function Name LLM ->> Agent: Send Function Name Agent --> Agent: Run Function Agent ->> LLM: Send Function Result end LLM ->> Agent: Send Answer Agent ->> User: Send Answer