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.
# 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 backChatbot: single-turn response. Agent: multi-step, uses tools, может искать информацию сам. Blurry boundary — modern chatbots всё больше используют agentic patterns.
Agent loops могут заблудиться. Best practice: max_iterations limit, human-in-loop для critical steps, observability via traces.
Anthropic 2025 — SDK для building agents. Включает tools, retrieval, long context (1M tokens), cache. Tight integration с Claude Opus 4+.