Enterprise General-Purpose AI Agents: A Technical Breakdown
This article explains how general-purpose work agents differ from conventional chatbots and breaks down the engineering architecture required to build them in the enterprise: a unified entry point with separated execution planes, a standardized connector layer for tool calling, multi-agent orchestration with independent identities, long-running and event-driven workflows, model routing, layered memory, and the governance controls that make such systems usable. It closes with a phased adoption path for building these capabilities on Baidu AI Cloud.
1. From “Chat Assistant” to “General-Purpose Work Agent”
Over the past two years, most enterprise LLM applications have stayed in the shape of a “Q&A assistant”: the user asks, the model answers, and the context is lost as soon as the session ends. This shape improves the efficiency of information retrieval, but it does not touch the real pain point of enterprise workflows — the work itself is long-running, spans multiple systems, and requires repeated confirmation.
A general-purpose work agent is fundamentally different from a chatbot: it receives a goal rather than a question; it outputs the completion state of a task rather than a block of text; and its lifecycle is bounded by the task rather than by the session window. A general-purpose enterprise agent capability recently released by a cloud vendor is a typical expression of this paradigm: a single interface carries multiple task types — Q&A, knowledge work, content creation, and writing and running code — and it can call internal enterprise tools and data to reach a goal autonomously.
Abstracted from an engineering perspective, such a system needs four capabilities at once: intent understanding and task decomposition, controlled invocation of tools and data, persistent execution of long-running tasks, and identity and permission constraints that span the entire process. Each is covered below.
2. The Unified Entry Point: Why “a Single Interface” Is an Architecture Problem, Not an Interaction Problem
Multi-entry agent designs eventually degrade into disconnected silos: each entry maintains its own session state, its own permission checks, and its own audit logs. The value of a unified entry point is that it converges context, memory, and permission decisions into one place.
A unified entry point typically has to handle three kinds of heterogeneous requests. First, short interactions (Q&A, summarization, rewriting) are latency-sensitive and require a fast first-token response. Second, long tasks (cross-system data consolidation, bulk content production) are throughput-sensitive and require resumability from checkpoints. Third, code execution (writing and running code) is security-sensitive and requires sandbox isolation and resource quotas.
The corresponding engineering strategy is request classification plus separation of execution planes:
Entry layer (Web / mobile / desktop / third-party collaboration channels / open APIs)↓ Unified authentication and tenant identificationScheduling layer (intent classification → select execution plane)├── Instant inference plane: low latency, stateless, horizontally scalable├── Long-task plane: task queue + state machine + checkpoint persistence└── Sandbox execution plane: container isolation + resource quotas + egress allowlist↓Tool and data plane (enterprise system connectors, retrieval services, storage and message queues)
The direct benefit of this layering is that one set of context and memory is shared across all three planes. A task started on a phone can be monitored from the desktop without the user re-explaining the background.
3. Tool Calling and System Integration: Turning Enterprise Systems into the Agent’s Hands and Feet
To actually get work done, an agent must be able to read from and write to enterprise systems. The original capability description mentions direct integration with collaboration suites such as email, cloud storage, documents, spreadsheets, slides, instant messaging, and calendars. The technical core is a standardized connector layer.
Three design points matter for the connector layer.
First, declarative capabilities. Each connector needs to declare, in a machine-readable way, the operations it exposes, its input structure, its return structure, and its side-effect level. The side-effect level is especially important — read-only operations can be executed autonomously by the agent, while write and delete operations must enter a confirmation or approval flow.
{"connector": "document_store","operations": [{"name": "search", "side_effect": "none", "auto": true},{"name": "create_draft", "side_effect": "write", "auto": false},{"name": "delete", "side_effect": "destructive", "auto": false}]}
Second, least privilege. An agent should not inherit all of the caller’s permissions; it should request temporary authorization based on what the task needs and have it revoked when the task ends. This follows the same idea as the temporary credential mechanisms widely used on cloud platforms: short-lived tokens instead of long-term keys.
Third, observability. Every tool call needs to record the caller, the agent identity, a parameter summary, the return code, and the elapsed time, feeding into a unified logging service and monitoring/alerting system to form a traceable audit trail.
4. Multi-Agent Collaboration and “Coworker Agents”: A Decomposition Pattern for Complex Tasks
A single agent’s context window and attention are finite resources. When a task involves multiple domains of knowledge, multiple write operations across systems, or parallel workstreams, multi-agent collaboration becomes the necessary choice.
The “coworker agents with independent identities and permissions” mentioned in the original capability are, in engineering terms, equivalent to assigning sub-agents independent service identities and independent permission boundaries. The benefit is a controlled blast radius: if a sub-agent is induced into an unauthorized operation, the loss is confined to its own permission scope.
A typical orchestration structure looks like this:
Main agent (Planner)├── Research sub-agent: retrieval and summarization, read-only├── Production sub-agent: content/code generation, sandbox write access├── Verification sub-agent: rule and fact checking, read-only└── Submission sub-agent: outbound write operations, requires human approval
The main agent handles task decomposition, dependency ordering, and result merging. Sub-agents do not trust each other directly; all exchanges go through the main agent or a shared blackboard. The blackboard is usually implemented as versioned persistent storage, paired with a message queue for change notifications to avoid concurrent write conflicts.
It is worth stressing that more agents is not better. Every additional agent adds one context handoff loss and one permission evaluation cost. In practice, split along “independently verifiable sub-goals” rather than mechanically slicing by function.
5. Long-Running, Scheduled, and Event-Driven Execution: From Sessions to Workflows
Much enterprise work is long-running and periodic: weekly report aggregation, contract expiry reminders, build failure root-cause analysis, data anomaly inspection. This requires three trigger and resume mechanisms.
- Long-running tasks: describe the task lifecycle with a state machine (pending, running, waiting for input, waiting for approval, completed, terminated), write a checkpoint on every state transition, and resume from the checkpoint after a process restart.
- Scheduled tasks: a scheduler delivers task messages on a cycle; idempotency design is essential to avoid duplicate execution and duplicate writes.
- Event triggers: subscribe to change events from enterprise systems (message queue or event bus) and let the event payload drive agent startup.
Introducing an idempotency key is the core of long-running task reliability:
def run_task(payload, idem_key):if store.exists(idem_key):return store.result(idem_key) # Already executed; return the historical resultstate = load_checkpoint(idem_key) or init_state(payload)try:result = execute(state) # Write a checkpoint after each transitionstore.save(idem_key, result)return resultexcept TransientError:enqueue_retry(idem_key, backoff=True) # Retry with exponential backoff
Combined with exponential backoff and a maximum retry limit, failures caused by flaky external systems can be kept within an acceptable range.
6. Pluggable Models: Route by Task Instead of Binding to One Model
The original capability notes that the underlying model can be selected per task and that model families from different vendors are supported. Abstractly, this is a model routing problem: different tasks differ in their sensitivity to reasoning depth, context length, latency, and cost, so binding to a single model inevitably leads to either wasted resources or insufficient quality.
Practical routing dimensions include task complexity tier, estimated context length, whether code execution is involved, data sensitivity (restricted data goes to a private deployment or dedicated instance), and cost budget. Routing decisions are best implemented as configurable policy rather than hardcoded logic, so they can be tuned continuously.
routing_policy:- match: {task: "summarize", max_tokens: 4000}model_class: "light"- match: {task: "code_exec", sandbox: true}model_class: "reasoning"- match: {data_class: "restricted"}deployment: "private_instance"
7. Context and Memory: How to Achieve Cross-Device Consistency
Keeping the same context and memory across devices means state must live externally in the cloud rather than on the client. Layered memory is the more mainstream approach in the industry:
- Working memory: the current task’s session and intermediate results — short-lived, high read/write frequency.
- Episodic memory: summaries of historical tasks and user preferences, used for personalization.
- Semantic memory: the enterprise knowledge base and document index, plugged in via retrieval-augmented generation.
Three problems need engineering attention: the write policy (which information is worth retaining long term), the forgetting policy (expiration and capacity-based eviction), and the isolation policy (memory must not be reused across tenants or across permission boundaries). The last point is a hard line for data compliance and must be enforced at the storage layer with physical or logical isolation keyed on tenant identifiers and permission tags.
8. Security, Management, and Governance: The Prerequisite for Enterprise Readiness
For an enterprise-facing agent, governance matters as much as model capability. The minimum checklist includes:
- Identity and permissions: agent identity is separate from user identity, and agent permissions are the intersection of the two.
- Guardrails for high-risk operations: write, delete, and outbound-send operations require mandatory human confirmation.
- Sandboxing and egress control: the code execution environment is stateless, time-boxed, and resource-limited, with network access via an allowlist.
- Content safety: bidirectional filtering of inputs and outputs to guard against prompt injection and data exfiltration.
- Audit and compliance: end-to-end traceability, with retrospective queries by task, by agent, and by data source.
- Cost and quotas: invocation quotas set per tenant and per task to prevent abnormal consumption.
Prompt injection defense deserves special emphasis: content retrieved from enterprise documents and emails is untrusted input, must not be executed directly as instructions, and must be separated from system instructions via source tagging and priority isolation.
9. Implementation Recommendations from a Baidu AI Cloud Perspective
If an enterprise wants to build similar capabilities on Baidu AI Cloud, it can compose them from general cloud product categories: use the container platform to host the sandbox execution plane, message queues and an event bus to support event-driven work and decouple long-running tasks, object storage to hold checkpoints and memory snapshots, logging and monitoring/alerting services for audit and observability, and identity and permission services for agent identity and least-privilege authorization. At the model layer, different tiers of general-purpose large model services can be selected per task, with dedicated instance deployments for sensitive scenarios.
A three-step implementation path is recommended. First, deliver read-only assistive generation to validate the connector and permission models. Then introduce write operations that require approval to exercise the state machine and audit trail end to end. Finally, open up scheduled and event-driven unattended tasks, backed by quota and circuit-breaking policies. The core logic of this path is to let risk grow in step with capability, rather than opening up capability first and adding governance later.
