Agentic Workflows
Khám phá cách các luồng công việc tác nhân (agentic workflows) cho phép các tác nhân AI tự chủ giải quyết các tác vụ phức tạp. Học cách tích hợp các công cụ thị giác tiên tiến như Ultralytics YOLO26.
Agentic workflows represent a transformative approach in artificial intelligence (AI) where multiple autonomous entities interact, make decisions, and execute multi-step tasks with minimal human intervention. Unlike traditional machine learning pipelines that follow strict, linear execution paths, an agentic workflow is highly dynamic. It allows an intelligent agent or a coordinated network of agents to perceive their environment, reason through complex problems, and utilize external tools to achieve predefined goals. As organizations scale their AI initiatives, enterprise agentic workflows are replacing isolated scripts, enabling robust, scalable automation across diverse industries.
Tìm hiểu về các quy trình làm việc dạng tác nhân#
Về cốt lõi, một quy trình làm việc dạng tác nhân chuyển dịch AI từ tạo lập thụ động sang giải quyết vấn đề chủ động. Điều này đòi hỏi sự chuyển đổi từ các tương tác đơn lẻ dựa trên prompt sang một vòng lặp lặp lại của việc lập kế hoạch, thực thi và quan sát. Bằng cách điều phối các vòng lặp này, các nhà phát triển có thể xây dựng các hệ thống có khả năng xử lý các trường hợp biên bất ngờ và tự sửa lỗi.
To clearly distinguish closely related concepts: an AI agent is the individual autonomous entity (often powered by a large language model (LLM)) that reasons and acts. Conversely, an agentic workflow is the overarching architectural process that governs how these agents collaborate, share memory, and sequence their actions. Furthermore, while generative AI primarily creates content in a single linear pass based on a user prompt, agentic systems use agentic design patterns—such as self-reflection, planning, and multi-agent debate—to continuously refine their outputs until the objective is fully met.
Các thành phần cốt lõi#
Một vài yếu tố nền tảng thúc đẩy sự thành công của các quy trình làm việc này:
- LLM backbones: The central reasoning engines of the workflow. Frameworks orchestrate state-of-the-art models like OpenAI's GPT-4o to interpret user intent and dynamically generate execution plans.
- Function calling and tool use: Agents are equipped with specific tools to interact with the outside world. This includes querying databases, executing code, or invoking computer vision models to analyze visual data. Documentation from providers like OpenAI on function calling outlines how models format outputs to trigger external APIs reliably.
- Orchestration frameworks: Libraries such as LangGraph, CrewAI, and Microsoft AutoGen provide the critical infrastructure to connect agents, manage conversation states, and route tasks intelligently.
- Quản lý bộ nhớ và ngữ cảnh: Để ngăn chặn ảo giác và duy trì tính nhất quán trên các quy trình nhiều bước, các quy trình làm việc lưu giữ bộ nhớ ngắn hạn (cửa sổ ngữ cảnh hội thoại hiện tại) và bộ nhớ dài hạn (cơ sở dữ liệu bền bỉ) để học hỏi từ các tương tác trong quá khứ.
Các ứng dụng trong thực tế#
Các quy trình làm việc dạng tác nhân đang chủ động giải quyết các tác vụ phức tạp, mở trong thế giới thực:
-
Autonomous Visual Inspection: In manufacturing, an agentic system can automate defect detection. An orchestrator agent triggers a camera tool to capture an image, processes it using an object detection model, and analyzes the output. If a defect is found, the agent autonomously logs a maintenance ticket and routes the product for manual review, managing the entire factory response.
-
Intelligent Document Parsing: In finance and legal sectors, workflows are designed to extract structured data from unstructured PDFs. Agents iteratively apply layout detection, using targeted prompt engineering to self-correct and verify extracted tables against expected financial schemas.
-
Vận hành tiếp thị năng động: Các nhóm tiếp thị có tư duy tiến bộ đang tái tạo các quy trình tiếp thị bằng cách triển khai các tác nhân tự động phân tích xu hướng hiện tại, tạo nội dung chiến dịch, thử nghiệm các biến thể nội dung quảng cáo và điều chỉnh chiến lược ngân sách dựa trên các số liệu hiệu suất theo thời gian thực.
Ví dụ: Xây dựng quy trình làm việc tác nhân thị giác#
Integrating visual intelligence into an agentic workflow is simple using the Ultralytics Platform and the ultralytics Python package. In this conceptual example, an agentic system uses YOLO26 as a perception tool to examine a factory line, allowing the workflow's underlying logic to autonomously decide the next action based on the predict mode results.
from ultralytics import YOLO
# Load the recommended Ultralytics YOLO26 model
model = YOLO("yolo26n.pt")
# Agentic workflow step 1: Vision tool gathers environmental data
results = model.predict("factory_line.jpg")
# Agentic workflow step 2: Agent logic evaluates the visual detections
def decision_agent(detections):
for obj in detections:
# Check if the model detected a specific class, e.g., 'defect'
if obj.names[int(obj.cls)] == "defect":
return "Action: Trigger immediate maintenance alert."
return "Action: Continue production line smoothly."
# Execute the agent's decision logic based on bounding box data
action = decision_agent(results[0].boxes)
print(action)By leveraging frameworks like PyTorch under the hood, these vision tools feed highly accurate spatial awareness into the broader AI logic. As agentic organizations continue to mature, the combination of advanced reasoning models and real-time vision capabilities will drive the next generation of intelligent, self-correcting automation. Through continuous improvement via active learning and sophisticated orchestration, agentic workflows ensure that AI systems reliably execute complex strategies end-to-end.






