Summary of "ИИ-агенты — вот что действительно изменит разработку. Пишем ИИ-агент на Python, LangChain и GigaChat"

High-level summary

Thesis: LLM-based agents — systems that combine a large language model (LLM) with callable tools — are the thing that will truly change software development. Rather than replacing programmers, this paradigm empowers developers to write connectors and let models decide which code/tool to call and with what arguments.

Definition of an agent


Technical concepts and architecture


Hands-on tutorial / practical demo

Goal: build an agent pipeline to automatically produce accounting documents (acts/invoices) from incoming documents/emails using Python + LangChain-like tooling + Gigachat.

Stack used

Step-by-step breakdown (demo)

  1. Create project, virtualenv, install packages (LangChain / LangGraph connectors, Gigachat connector).
  2. Set up .env with API keys/credentials for Gigachat.
  3. Define data models (email, bank details, jobs) and a deterministic function generate_pdf_act(custom, jobs) that consumes structured data and writes a PDF via Types.
  4. Implement an LMAgent class that wraps the LLM + tools, with helper methods like upload_file and invoke (send messages / attachments).
  5. Build an initial single-agent flow:
    • Upload a file (docx/pdf/text).
    • Ask the agent to extract counterparty details and request job lines (task name + cost).
    • Call generate_pdf_act to produce the document. The demo showed correct parsing across many formats.
  6. Extend with mail.py:
    • Add a tool to fetch recent emails (returning subject/body/attachments as data classes).
    • Add a tool to upload chosen attachments to the LLM.
    • Add these tools to the agent capabilities.
  7. Observe hallucination when a single agent handled search → upload → generation. Implemented solution: split into two agents with restricted toolsets:
    • Agent A: only fetch_recent_emails; returns the filename that contains company details (or “missing”).
    • Agent B: only generate_pdf_act and is given the verified local file to extract details and generate the PDF. This sequentialization reduced hallucinations.

Demo details


Implementation tips and practical notes


Broader implications and analysis


Tutorial & code resources


Main speakers / sources referenced

Category ?

Technology


Share this summary


Is the summary off?

If you think the summary is inaccurate, you can reprocess it with the latest model.

Video