Machine Learning pathway increased my salary by 40%
AI Agent Frameworks, Tools and Development Ecosystems
Frameworks promise composition and deliver convenience. The decision that actually determines whether an HR agent estate survives contact with production is how tools are defined, permissioned, versioned and traced — and whether you can leave the framework without rewriting the business logic.
This chapter surveys the framework landscape by capability rather than by brand: graph orchestrators, role-based multi-agent crews, conversation-first assistants, enterprise SDKs and vendor-embedded agents. It then turns to tools, which are the real contract between the model and the enterprise — narrow, typed, idempotent, permission-scoped and testable — and to interface standards such as the Model Context Protocol that are beginning to normalise how tools and context are exposed. It closes with selection tests, build-versus-buy economics, vendor risk and a ninety-day adoption plan that keeps the portability option open.
What this covers
- Who this is for
- Solution architects, engineering leads and technology-selection committees choosing the stack for HR agentic automation, plus HR technology leaders assessing vendor-embedded agent claims.
- What it assumes
- Chapters 01–07. No hands-on coding is required, though the tool-design section is more useful if you have written an API client at some point.
- What you will be able to do
- Evaluate framework categories against production requirements, design a tool catalogue with permissions and idempotency, assess vendor-embedded agents, and structure a pilot that preserves exit options.
- Reading time
- About 25 minutes, including the knowledge check and question bank.
What frameworks provide and what remains yours
A framework gives you composition primitives — loops, graphs, role definitions, message buses — plus connectors, prompt templating and some tracing. What it rarely gives you is durable execution across days, fine-grained permissioning of tools, idempotency on side effects, evaluation harnesses against your own corpus, or an audit record shaped for regulators. Those are the parts that consume most of the engineering effort in a real deployment.
That is not an argument against frameworks. They compress the first three weeks substantially and they encode patterns that are easy to get wrong by hand, particularly around tool-call loops and structured output. The argument is against mistaking adoption for architecture: a team can use a well-known framework and still lack every production control, because the framework was never designed to supply them.
The practical consequence for evaluation is to separate the demo axis from the production axis. Demo questions concern how quickly a working prototype appears. Production questions concern state, permissions, tracing, evaluation, cost control and exit. Most selection processes over-weight the first and discover the second during an incident review.
- Frameworks compress prototyping time; they rarely supply production controls.
- Durable state, idempotency, permissioning, evaluation and audit remain your work.
- Evaluate on the production axis: state, permissions, tracing, cost, exit.
- Adoption of a framework is not evidence of architectural completeness.
The framework categories and what each is good at
Graph orchestrators model execution as nodes and edges with shared state, and they are the natural fit for processes with branches, loops and checkpoints. They tend to be the strongest choice for HR workflows where a case must be resumed and inspected. The trade-off is that the graph becomes a programming artefact that non-engineers cannot read, so documentation discipline matters.
Role-based multi-agent frameworks describe a team of agents with roles, goals and tools, coordinating through messages or a manager. They make multi-agent designs quick to express and are useful for exploration, research and parallel evidence gathering. They provide fewer guarantees about determinism, which is a problem when a case must be defended months later.
Conversation-first assistants, enterprise SDKs and vendor-embedded agents make up the rest. Conversation-first tools are excellent for tier-zero service and poor for structured process execution. Enterprise SDKs trade flexibility for governance, identity integration and support, which is often the right trade in a regulated function. Vendor-embedded agents — the assistants shipped inside HCM and ATS platforms — arrive with data access already solved and with limited orchestration, tooling and portability.
- Graph orchestrator
- Execution as nodes and edges over shared state. Best fit for branching, resumable HR cases.
- Role-based crew framework
- Agents with roles, goals and tools coordinating by message. Fast to express, weaker determinism.
- Conversation-first assistant
- Dialogue-centric platform. Strong for tier-zero service, weak for structured process execution.
- Enterprise agent SDK
- Governed SDK with identity and support. Trades flexibility for control and accountability.
- Vendor-embedded agent
- Assistant inside an HCM or ATS product. Data access solved; orchestration and exit constrained.
Tools are the contract between the model and the enterprise
An agent's capability is the union of its tools, and its risk is the union of their permissions. This is why tool design deserves more attention than prompt design. A tool should do one thing, take a typed schema, validate its inputs, enforce authorisation against the requesting identity, return a structured result, and be safe to call twice.
Narrow tools outperform broad ones. A tool called updateEmployeeRecord that accepts a free-form field map invites scope creep, accidental writes to protected fields and unauditable side effects. Three specific tools — updateAddress, updateEmergencyContact, updateBankDetails — each with its own permission and validation, produce clearer traces, tighter access control and simpler tests.
Read and write tools should be separated and governed differently. Read tools can be broadly available within entitlement; write tools should require dry-run capability, an explicit confirmation step for consequential fields and an audit event. The same distinction applies to money and identity: payroll adjustments and access provisioning deserve their own tools, their own approvals and their own rate limits.
- One purpose per tool, typed inputs and outputs, validated and permission-checked.
- Replace broad record-update tools with specific, individually permissioned operations.
- Separate read and write tools; writes need dry-run, confirmation and audit events.
- Treat payroll, payments and provisioning as privileged tool classes with approvals.
- Version tools and record the version with every call.
Tool protocols, MCP and the interoperability shift
Historically every framework defined tools its own way, so moving an agent meant rewriting every integration. The Model Context Protocol changes that by standardising how a server exposes tools, resources and prompts to a client, so the same integration can be consumed by different agent runtimes. For an enterprise this is primarily a portability and governance win: one reviewed connector, many consumers.
The security implications are significant and often underweighted. An MCP server is an executable surface reachable by a model, and a client that installs servers without review is effectively letting the model invoke unreviewed code. Treat server installation as a change-controlled procurement decision, pin versions, run servers with least privilege, and inspect what each one can read and write.
Protocol standardisation does not remove the need for an internal tool catalogue. It changes the catalogue's form: instead of bespoke wrappers per framework, you maintain reviewed servers and a registry of which agents may use which capabilities under which identity. That registry becomes the artefact audit and security teams actually review, and it is more durable than any framework's configuration.
- Standard protocols decouple integrations from agent runtimes, improving portability.
- An MCP server is executable surface; install only reviewed, version-pinned servers.
- Run servers with least privilege and explicit read/write scopes.
- Maintain an internal registry: agent, capability, identity, approval, owner.
- Test protocol-level failures — timeouts, schema drift, partial results.
How to evaluate a framework without a beauty contest
Run the same eight tests against every candidate. Durable state: can a case resume after process death, with evidence intact? Permissioning: can tool access be scoped per agent and per user identity? Observability: are traces exportable to your standard tooling with correlation identifiers? Evaluation: can you run your own labelled question set and regression suite? Determinism: can a run be replayed against recorded state?
Then the operational tests. Deployment: does it fit your cloud, network and identity model, or does it require a route through the vendor? Cost transparency: can you attribute token and tool spend to a case? Exit: how much of your logic is framework-specific — prompts, tool definitions, state shape — and is it exportable? Support: who answers at 3 a.m. and under what agreement?
Score honestly and record the reasoning. The most common selection failure is not choosing a weak framework; it is choosing one whose exit cost nobody estimated, then discovering at renewal that the business logic is inseparable from the runtime. A decision record that states the exit path is worth more than a comparison matrix of features you will never use.
- Write the eight production tests before meeting any vendor.
- Prototype one real HR case, not a demo scenario, in each shortlisted stack.
- Kill the process mid-case and verify resume with intact evidence.
- Scope a tool to one user's entitlements and attempt an out-of-scope call.
- Export a trace and replay it against recorded state.
- Estimate exit cost in engineer-weeks and record the assumption.
- Decide, and write the decision record with the exit path included.
Build, buy or extend the platform you already own
The default in most enterprises is extend rather than build. HCM and ATS vendors now ship assistants and agent capabilities, and using them avoids a second system of record, inherits identity and audit, and keeps the data where the governance already exists. The constraints are configuration limits, shared roadmaps, opaque model behaviour and weak portability of logic you configure inside a vendor's product.
Building makes sense when the process is a differentiator, when the required orchestration is not expressible in vendor tooling, or when integration across several systems is the core of the value. It rarely makes sense for commodity capabilities — document extraction, speech-to-text, standard policy answering — where buying is cheaper and better tested.
Extending is the pragmatic middle: use the platform for data and record-keeping, and run a governed orchestration layer that calls its APIs. The design test is whether the business logic lives in a place you control. If the routing, policy interpretation and evidence rules sit in your orchestrator, you can change vendor or model later with bounded cost; if they live in a vendor's workflow builder, your options narrow each year.
- Extend by default: reuse the record, identity and audit you already own.
- Build where orchestration across systems is the differentiator.
- Buy commodity capabilities rather than rebuilding extraction and speech.
- Keep routing, policy interpretation and evidence rules in a layer you control.
- Price the exit at procurement, not at renewal.
Development practice: versioning, testing and prompt as code
Prompts, tool schemas and workflow definitions are source artefacts and should live in version control with review, diffs and rollback. The failure mode of prompt editing in a vendor console is that a change on a Friday afternoon alters eligibility wording with no review, no test run and no record of who made it.
Testing has three layers. Unit tests for tools and validation logic, with fault injection for timeouts and malformed responses. Regression tests over a labelled set of HR questions and cases, scoring retrieval and answer quality so a prompt change is a measurable event. Adversarial tests for injection, out-of-scope requests and entitlement violations, run on every release because the corpus and the tools both change over time.
Environments deserve equal discipline. A staging estate with realistic but non-production data, deterministic fixtures for case replay and a promotion path that mirrors production model versions. Teams that test against live data because fixtures are inconvenient tend to discover their entitlement defects from employees rather than from test runs.
- Prompts, schemas and workflow definitions in version control with review.
- Unit tests with fault injection on every tool boundary.
- Regression suite over labelled HR questions and recorded cases.
- Adversarial tests for injection, scope and entitlements on each release.
- Staging with realistic fixtures and mirrored model and index versions.
Vendor risk, model dependency and exit planning
Four dependencies matter: the model provider, the framework, the orchestration runtime and the data platform. Each has a different exit cost and a different breakage profile. Model providers change versions and deprecate endpoints; frameworks change their abstractions between major releases; runtimes change pricing; data platforms change schemas. Assume every one of them changes inside your planning horizon.
Mitigation is unglamorous. Keep business rules in code you own, behind interfaces. Keep prompts and evaluation sets in your repository so they can be run against a new model in a day. Pin versions and upgrade deliberately with the regression suite. Maintain a second-provider smoke test so a failover is a configuration change rather than a project.
Contractual protection matters too: deprecation notice periods, data-use restrictions for training, sub-processor disclosure, audit rights and the right to export your configuration and history. These clauses are rarely read until they matter, and by then the negotiation position is gone.
- Four dependencies: model, framework, runtime, data platform.
- Own business rules and prompts behind interfaces you can re-point.
- Keep an evaluation set that runs against any candidate model.
- Pin versions; upgrade deliberately with the regression suite.
- Negotiate deprecation notice, data-use limits, audit rights and export.
A ninety-day adoption plan that keeps options open
Days one to thirty: choose one process, not a platform. Write its state machine, its failure semantics and its evidence requirements. Define the tool catalogue with permissions and idempotency keys, and build the run record before the agent, because retrofitting observability is how pilots become permanent experiments.
Days thirty-one to sixty: implement the deterministic core and one model-assisted step. Build the labelled evaluation set with the process owners, including the twenty questions or cases that people get wrong today. Instrument cost and human minutes from the first run. Include the case owners in reviews — their objections are the most useful specification input available.
Days sixty-one to ninety: run the process in shadow mode alongside the existing one, compare outcomes case by case, then gate a limited production release behind a named owner and an explicit rollback. Write the decision record: what worked, what the framework could not do, what the exit cost would be. That record determines whether the second process takes four weeks or four months.
- Pick one process with measurable volume and a real cost of error.
- Write state machine, failure semantics and evidence requirements first.
- Define tools with permissions and idempotency; build the run record early.
- Implement deterministic logic before adding model-assisted steps.
- Build the evaluation set with process owners, not engineers alone.
- Shadow-run and compare case by case before any production release.
- Record decisions, gaps and exit cost; reuse them for the next process.
Ecosystem anti-patterns
Framework-first adoption starts from a product and hunts for a problem, which produces elegant architectures with no owner in the business. Broad tools — one function that can update any field of an employee record — pass demos and fail audits. Console-edited prompts create untracked behaviour change. Unreviewed MCP servers give a model reach into systems nobody assessed.
The shared production credential is another recurring failure: every agent runs as one service account with broad rights, which makes entitlement enforcement impossible and incident attribution guesswork. And the permanent pilot, running quietly on real data without evaluation or rollback, is the most expensive anti-pattern of all because it consumes trust that later programmes need.
- Framework-first adoption: architecture without a business owner.
- Broad write tools: demo-friendly, unauditable, impossible to permission.
- Console-edited prompts: untracked behaviour change with no rollback.
- Unreviewed MCP servers and plugins: unreviewed executable surface.
- Shared service credentials: no entitlement enforcement, no attribution.
- Permanent pilots: real data, no evaluation, no rollback, spent trust.
Framework selection in practice
Both scenarios are illustrative constructions rather than reports of specific procurements, but the reasoning mirrors decisions that recur in HR technology programmes.
In the first, a financial-services group with 48,000 employees needed case handling for leave and accommodation requests spanning up to ninety days. The team's instinct was a role-based crew framework because the demo had impressed stakeholders. The eight tests changed the decision: the crew framework could not resume a case after process death without custom work, and its traces could not be exported to the group's observability stack. A graph orchestrator with checkpointing met both requirements, at the cost of a steeper learning curve for prompt-oriented engineers.
In the second, a retail group had already standardised on its HCM vendor and wanted policy answering inside the employee portal. Building a bespoke agent would have duplicated document access, identity and audit that the platform already provided. The decision was to extend: the vendor's assistant handled grounded answering inside its own scope, while a small internal layer handled cross-system cases the vendor could not reach. The contract between the two was a documented boundary, not an integration project.
Key takeaways
Choose frameworks on production criteria, design tools as narrow permissioned contracts, and treat protocol standardisation as a governance opportunity rather than a convenience. Keep business logic in a layer you own so that changing model, framework or vendor stays a bounded exercise.
Chapter 09 moves from the stack to the work itself: workflow discovery, process mining and the design method that decides which HR processes should be automated, in what order, and with what evidence that automation was the right answer.
- Frameworks supply composition; you supply state, permissions, evaluation and audit.
- Narrow, typed, idempotent, permission-scoped tools are the real capability boundary.
- Standard protocols improve portability; review every server as executable surface.
- Extend the platform you own; build only where orchestration is the differentiator.
- Keep prompts, schemas and workflows in version control with a regression suite.
- Run a bounded ninety-day pilot that ends in a decision record and an exit estimate.
5 questions to test the model
What do agent frameworks most reliably provide?
Why is a single broad updateEmployeeRecord tool a poor design?
What is the main governance value of standardising tool interfaces?
Which condition most justifies building rather than extending an existing HR platform?
Why does a single shared service credential undermine an agent estate?
Questions this page answers
Should we wait for standards to settle before starting?
Is a graph orchestrator always better than a role-based crew?
How do we stop the tool catalogue growing without control?
What should we look for in a framework's tracing?
Are vendor-embedded HCM agents a safe default?
How large should the initial tool catalogue be?
Do we need our own model gateway?
How do we handle model deprecations?
What belongs in the decision record after a pilot?
How do we evaluate frameworks when procurement forbids trials?
Is low-code configuration acceptable for HR agents?
How do we keep prompts reviewable by non-engineers?
What integration pattern suits legacy HR systems?
How do we compare cost across frameworks?
What does portability actually require?
Should our first tool be a read or a write?
How do we test entitlement enforcement?
What if our HCM vendor offers an agent marketplace?
How much of the estate should one vendor own?
What comes next in the course?
What does Graph orchestrator mean in AI Agent Frameworks, Tools and Development Ecosystems (The framework categories and what each is good at)?
What does Role-based crew framework mean in AI Agent Frameworks, Tools and Development Ecosystems (The framework categories and what each is good at)?
What does Conversation-first assistant mean in AI Agent Frameworks, Tools and Development Ecosystems (The framework categories and what each is good at)?
What does Enterprise agent SDK mean in AI Agent Frameworks, Tools and Development Ecosystems (The framework categories and what each is good at)?
What does Vendor-embedded agent mean in AI Agent Frameworks, Tools and Development Ecosystems (The framework categories and what each is good at)?
What does What frameworks provide and what remains yours explain about AI Agent Frameworks, Tools and Development Ecosystems?
What does The framework categories and what each is good at explain about AI Agent Frameworks, Tools and Development Ecosystems?
What does Tools are the contract between the model and the enterprise explain about AI Agent Frameworks, Tools and Development Ecosystems?
What does Tool protocols, MCP and the interoperability shift explain about AI Agent Frameworks, Tools and Development Ecosystems?
What does How to evaluate a framework without a beauty contest explain about AI Agent Frameworks, Tools and Development Ecosystems?
What does Build, buy or extend the platform you already own explain about AI Agent Frameworks, Tools and Development Ecosystems?
What does Development practice: versioning, testing and prompt as code explain about AI Agent Frameworks, Tools and Development Ecosystems?
What does Vendor risk, model dependency and exit planning explain about AI Agent Frameworks, Tools and Development Ecosystems?
What does A ninety-day adoption plan that keeps options open explain about AI Agent Frameworks, Tools and Development Ecosystems?
What does Ecosystem anti-patterns explain about AI Agent Frameworks, Tools and Development Ecosystems?
What does Framework selection in practice explain about AI Agent Frameworks, Tools and Development Ecosystems?
What does Key takeaways explain about AI Agent Frameworks, Tools and Development Ecosystems?
Which risks or limitations apply to How to evaluate a framework without a beauty contest in AI Agent Frameworks, Tools and Development Ecosystems?
Which risks or limitations apply to Vendor risk, model dependency and exit planning in AI Agent Frameworks, Tools and Development Ecosystems?
Which risks or limitations apply to Ecosystem anti-patterns in AI Agent Frameworks, Tools and Development Ecosystems?
Sources and standards
- Model Context Protocol — specification
Standard for exposing tools, resources and prompts to agent clients.
- OWASP Top 10 for Large Language Model Applications
Supply-chain and excessive-agency risks in tool ecosystems.
- NIST AI 600-1 — Generative AI Profile
Risk management guidance including third-party component oversight.
- ISO/IEC 42001:2023 — AI management system
Supplier management and lifecycle control requirements.
- ISO/IEC 27001:2022 — Information security management
Supplier and access-control obligations that apply to agent tooling.
- OpenTelemetry — semantic conventions
Attribute conventions for trace export and correlation across services.
- LangGraph documentation
Reference implementation of graph-based orchestration with checkpointing.
- Microsoft Agent Framework documentation
Enterprise SDK patterns for identity, tooling and observability in agent systems.
Continue through the chapters
Next: workflow discovery and automation design — how to find, rank and validate the HR processes worth automating before any agent is built.
Continue this lesson with a subscription
Multi-Agentic AI HR Tech Automations is part of the paid catalogue. You have read the free preview. A subscription opens the rest of this lesson, the classroom slides and the assessment questions.
- The full lesson for this topic and every other catalogue topic
- Every classroom slide deck and worked example
- All assessments, with a verifiable certificate on completion
The Free-To-Learn library stays open to everyone and is not affected by this.
