Skip to content

AI Agent

Коротко:

AI Agent — система, где LLM автономно выполняет multi-step tasks через: (1) reasoning о цели, (2) calling tools (web search, code execution, API calls), (3) observing results, (4) iterating. Paradigms: ReAct (Reason + Act), Plan-Execute, Reflexion. Frameworks 2026: LangGraph, Claude Agent SDK, AutoGen, CrewAI. Use cases: research assistants, coding copilots, customer support.

Ниже: подробности, пример, смежные термины, FAQ.

Попробовать бесплатно →

Подробности

  • Tools: callable functions — web search, SQL query, file ops, API call
  • Memory: short-term (scratchpad) + long-term (vector DB)
  • Planning: decompose goal → subgoals → actions
  • Loops: iterate до completion или max_iterations
  • Frameworks: LangGraph (StateGraph), Claude Agent SDK, AutoGen multi-agent

Пример

# Claude Agent SDK pattern
from anthropic import Anthropic

tools = [{'name': 'search_web', 'description': 'Search the web', 'input_schema': {...}}]

response = client.messages.create(
  model='claude-opus-4-7',
  tools=tools,
  messages=[{'role':'user','content':'Find latest news on TLS 1.3 adoption'}],
  max_tokens=4096
)

# Agent loop: if stop_reason='tool_use' → execute tool → send result back

Смежные термины

Больше по теме

Часто задаваемые вопросы

Agent vs chatbot?

Chatbot: single-turn response. Agent: multi-step, uses tools, может искать информацию сам. Blurry boundary — modern chatbots всё больше используют agentic patterns.

Reliability?

Agent loops могут заблудиться. Best practice: max_iterations limit, human-in-loop для critical steps, observability via traces.

Claude Agent SDK — что?

Anthropic 2025 — SDK для building agents. Включает tools, retrieval, long context (1M tokens), cache. Tight integration с Claude Opus 4+.