Define AgentWorks agents, models, and tools
An AgentWorks agent begins as an AgentSpec: a versioned YAML or JSON contract for instructions, model roles, tools, capabilities, limits, and execution behavior. Publishing validates that contract and creates a read-only version; building a release resolves the exact dependencies that a deployment will execute.
What belongs in an AgentSpec?
The released dvarahq.com/v1alpha1 contract separates intent from environment-specific secrets:
| Area | Put in the AgentSpec | Keep outside the AgentSpec |
|---|---|---|
| Instructions | System instructions and bounded execution behavior | Credentials or personal data used only by one run |
| Models | Named roles and the gateway/model aliases they require | Provider API-key values |
| Tools | Required tools or capability packs and their versions | Runtime secret values or unrestricted network access |
| Limits | Runtime, step, tool-call, token, cost, and child-work bounds | Operator ceilings, which can only narrow the request |
| Output | A self-contained structured-output schema when required | Code that silently accepts an invalid result |
Unknown fields or unsupported contract versions are refused. Treat validation diagnostics as authoring errors; do not remove a safety field merely to make publication pass.
How are model choices pinned?
Configure one or more model gateways, then give each AgentSpec model role a gateway and model alias. A release resolves the alias to a concrete model identity and records the required capabilities, including streaming, tools, structured output, usage reporting, cancellation, and metadata.
The release either requires a capability or records an allowed degradation. A later alias change affects a later release, not a run already admitted on the earlier release. Credentials remain references and are resolved only when the call is made.
AgentWorks 1.14 supports a direct OpenAI-compatible model endpoint and DVARA Gateway integration. Use DVARA Gateway when model, MCP, and agent-to-agent calls must pass through DVARA policy, data-protection, approval, and audit controls.
How do tools and capability packs work?
The workspace tool catalog holds versioned tool definitions. Search the catalog before publishing an agent, inspect the input and output schemas, and activate only reviewed versions. A capability pack is an ordered, versioned group of tools that can be selected as one release dependency.
The API and Console can:
- Search tool summaries and inspect one exact version.
- Create or import a tool version.
- Move a reviewed version through its allowed lifecycle.
- Create and inspect capability-pack versions.
- Bind the selected versions into an agent release.
A release does not follow whichever tool happens to be newest. It retains the exact tool and pack identity it was built with.
How do you use MCP tools?
An AgentWorks Runtime connected to DVARA Gateway can list the tools of approved MCP servers and import selected definitions into its workspace catalog. A run then calls those tools through the same gateway, carrying its exact workspace, agent, run, and delegated-user context.
If discovery is temporarily unavailable, AgentWorks retries it in the background. A refused prompt or resource listing is treated as unavailable rather than as permission to bypass the gateway. A tool call that the gateway refuses keeps the gateway's refusal code in the run failure.
Direct MCP and A2A execution are optional release components, not implied by the base server image. Confirm that the matching 1.14 libraries are present before publishing a release that requires them.
How does tool-argument correction work?
When a model proposes arguments that do not satisfy a tool's schema, AgentWorks can give the model one bounded correction round for the execution segment. The correction evidence is redacted, the same single-round budget is shared across all tools in that segment, and another invalid proposal fails normally. This is not an unbounded retry loop and does not relax policy, approval, credential, or tool-call limits.
What should you verify before release?
- Every model role resolves to the intended concrete model.
- Every required capability is supported or has an explicitly accepted degradation.
- Tool schemas are bounded and contain no embedded secret.
- Credential references exist at the narrowest supported scope.
- Runtime, tool-call, token, cost, and child-work limits are below operator ceilings.
- The release manifest shows the same exact versions tested before promotion.