Agent Runtime Frameworks: Extending AI Agents with Tools and Skills
The release of agent runtime frameworks marks a shift from conversational AI to task-oriented execution. This article explains how built-in and custom tools, standardized service integrations, skill plugins, execution modes, permissions, and observability work together to create extensible and governable AI agent systems. It also outlines a practical path for moving from low-risk built-in capabilities to production-ready workflows.
The release of an agent runtime framework signals that large language model applications are moving beyond conversation toward task execution. In the past, model quality was often judged mainly by the quality of generated text. In real development environments, however, the deciding factors are whether an agent can read files, execute commands, call services, track task progress, and retain experience through reusable skill plugins.
A useful way to understand the architecture is:
Agent = LLM + prompt + tools + runtime environment
The model provides reasoning capability, prompts define task constraints, tools provide the ability to act, and the runtime framework handles tool registration, permission control, context management, call scheduling, auditing, and governance. The value of this release is not simply the addition of one isolated feature. It combines a tool ecosystem, standardized service access, skill plugins, preset execution modes, and permission governance into an extensible engineering foundation.
1. Built-In Tools: Giving Agents Basic Action Capabilities
An LLM without tools is like a brain without hands or feet. It can explain a problem, but it cannot actually inspect a file, execute a command, or call an API. The first responsibility of a runtime framework is therefore to provide usable, out-of-the-box action capabilities.
Common built-in tools typically cover:
- File reading and writing
- Command execution
- Web or external information retrieval
- Task management
- Skill invocation
- Multi-agent collaboration
File tools locate, read, and write content. Command tools execute operations in controlled environments. Retrieval tools supplement the model with external information. Task management tools decompose work, track progress, and support rollback. Skill invocation tools bring user-defined procedures into the execution chain.
The main value of these tools is automatic, goal-driven invocation. During task execution, the agent selects tools based on the objective instead of requiring developers to manually connect every step. For example, when asked to identify a configuration error and suggest a fix, an agent might first read the configuration file, run read-only checks, inspect relevant logs, and then provide modification recommendations. The runtime framework coordinates the process, while developers focus on permission boundaries and result validation.
Built-in tools reduce the barrier to adoption, but they must follow the principle of least privilege:
- Default to read-only access.
- Require explicit authorization for write operations.
- Run command execution in a sandbox or otherwise controlled environment.
- Limit input and output sizes.
- Filter sensitive information from tool inputs and outputs.
2. Custom Tools: Registering Business Capabilities on Demand
Built-in tools address common scenarios, while custom tools address business-specific requirements. A runtime framework should allow developers to package internal capabilities as tools and register them in the available tool catalog.
A governable custom tool should include at least:
- A name
- A purpose description
- An input parameter schema
- Permission declarations
- Timeout and retry policies
- An output format
- An audit setting
- Version information
Tool descriptions are not merely documentation. They help the agent select the appropriate tool. Clear parameter schemas improve call reliability, and explicit permission declarations make security auditing easier.
The following is a conceptual example and does not represent the actual configuration fields of a specific product:
# Conceptual example: tool registration metadatatool:name: file_readerkind: builtindescription: Read the contents of a specified text filepermissions: [fs.read]limits:timeout_ms: 3000max_output_bytes: 65536audit: true
Custom tools should also support timely registration. When developers add or update a tool, the runtime framework should be able to refresh the tool catalog so that agents can discover and use the new capability in subsequent tasks.
However, more tools do not automatically mean better agents. A larger tool set increases selection costs and the risk of incorrect calls. Tools should therefore be organized with clear grouping, naming, examples, and deprecation policies.
For high-risk tools, consider adding:
- Secondary confirmation
- Strict parameter validation
- Idempotent operation design
- Call-frequency limits
Tools that return large amounts of data should support truncation, summarization, and pagination to prevent irrelevant content from consuming the agent’s context window.
3. Standardized Service Integration: Making External Capabilities Governable
A second major way to expand agent capabilities is through standardized service integration. A common industry approach is to use a unified protocol or service description to expose external APIs, data services, and business systems as tools that agents can call.
The key question is not simply whether a service can be connected, but whether it can be connected reliably, governed effectively, and traced afterward. Standardized integration should address:
- Service descriptions
- Authentication methods
- Transport security
- Error-code mapping
- Rate limiting
- Timeout and retry policies
- Audit logs
- Permission isolation
In practice, credentials should be stored in server-side secret management systems or an intermediary layer rather than in prompts or tool descriptions. External services should preferably be wrapped as read-only capabilities first, while write operations should require approval or confirmation.
Error codes should be mapped consistently so that the agent can distinguish between invalid parameters, insufficient permissions, and service unavailability, then apply different fallback strategies. Call chains should record the tool name, a parameter summary, elapsed time, result status, and the associated task identifier for troubleshooting and auditing.
When deploying in a cloud environment such as Baidu AI Cloud, organizations can use general cloud services for object storage, logging, monitoring and alerting, and secret management as part of the surrounding governance system. The core principles remain the same: least-privilege access, auditable calls, and recoverable failures.
4. Skill Plugins: Turning Experience into Reusable Workflows
Skill plugins are an important capability in an agent runtime framework. Tools answer the question, “What can the agent do?” Skills answer, “How should it do it step by step?”
A skill plugin commonly includes:
- Trigger conditions
- Applicable scenarios
- Step-by-step instructions
- Required tools
- Input and output formats
- Exception handling
- Version information
Skills extract team experience from prompts and turn it into reusable, testable, and maintainable workflow assets. For example, code debugging can be packaged as a skill that first reads error logs, locates relevant files, performs read-only checks, generates a minimal fix recommendation, and finally provides verification steps. This reduces repeated prompt writing and decreases result variation between developers.
A skill plugin should not be a simple collection of prompts. It should have clear engineering properties:
- Explicit boundaries that define when it should not be used
- Failure fallback when tool calls fail
- Human handoff when necessary
- Structured outputs for downstream processing
- Version control for traceable workflow changes
The relationship between skills and tools can be understood as orchestration and execution. A skill defines the workflow, while tools provide atomic capabilities. The runtime framework should support skill invocation, skill composition, and skill-level permission controls to prevent low-quality or unsuitable skills from being triggered incorrectly.
5. Preset Modes and Permission Models: Expanding Capabilities Within Clear Boundaries
Runtime frameworks often provide preset execution modes that package permission policies, context strategies, tool sets, and execution behaviors into templates. Although terminology varies between frameworks, common forms include basic execution, reduced-context operation, workflow orchestration, and open-ended creative modes.
Preset modes reduce configuration effort and help teams establish consistent standards. Open-ended modes are particularly flexible because they allow agents to combine tools and skills to solve unfamiliar problems. The more open the mode, however, the more important sandboxing, auditing, quotas, and human confirmation become.
Permission controls should span three layers:
- Tool layer: Controls which resources a tool can access.
- Service layer: Controls network access and data scope.
- Skill layer: Controls which combinations of operations a workflow can execute.
A recommended policy is:
Default deny, explicit authorization, tiered approval, and end-to-end auditing.
High-risk actions such as writing files, executing commands, or modifying data should require explicit authorization or secondary confirmation. Production interfaces should be accessed through proxy gateways that restrict targets and call frequency. Output should also be checked for sensitive information to prevent credentials, secrets, or personal data from entering the context.
6. An Engineering Adoption Path: Start with Built-In Tools, Observe Before Optimizing
To make a runtime framework useful in production, organizations should adopt it incrementally:
- Start with built-in tools for low-risk tasks and establish a baseline for permissions and auditing.
- Package frequently used business capabilities as custom tools with standardized parameters and error codes.
- Connect external systems through standardized service integration, prioritizing read-only scenarios.
- Convert stable workflows into skill plugins and build a reusable asset library.
- Validate multi-tool orchestration in a sandbox before gradually enabling production permissions.
- Define observability metrics such as task success rate, tool-call error rate, human handoff rate, average step count, audit coverage, and abnormal fallback frequency.
Configuration should also be separated by environment. Development environments can allow rapid registration and debugging. Staging environments should validate permissions and fallback behavior. Production environments should lock tool and skill versions.
Tools and skills need release processes, change records, and rollback mechanisms to avoid situations where a workflow works today but fails after an untracked change. In cloud deployments, logging and monitoring services can support call-chain tracing, object storage can preserve task artifacts and audit attachments, and container platforms can isolate execution environments.
The objective is not to give agents unlimited freedom. It is to enable them to complete verifiable tasks reliably within clearly defined boundaries.
Overall, the value of an agent runtime framework can be summarized as follows: built-in tools provide basic action capabilities, custom tools support business-specific extensions, standardized service integration connects external systems, skill plugins preserve reusable workflows, preset modes reduce configuration effort, and permissions plus auditing keep execution governable.
When these capabilities are combined, an LLM becomes more than a conversational interface. It becomes a manageable, extensible, and observable assistant that can participate in real software development workflows.
