Building Production-Ready AI Agents: Lessons from BeeAI Framework Development

ibm · Tech · 2025 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.5 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Open-source AI agent framework development and production-readiness lessons

IBM Research's BeeAI team wanted to help broader builders create useful AI agents, but found that production-ready agents require transparency, custom architectures, enforceable rules, security controls, clean developer experience, and evaluation processes beyond ordinary chat UI or prompt engineering.

Constraints:

Architecture

The BeeAI effort began with Peri, an agent prototype that combined tool calling, chain-of-thought prompting, web navigation, code execution, and synthesis on top of Llama 3-70B-Chat, an open-source model without built-in reasoning. The team added a trajectory explorer so users could inspect the steps used to produce a response. Those lessons fed into BeeAI Framework, a TypeScript-based open-source agent framework for full-stack developers. BeeAI evolved from an opinionated BeeAgent into ReActAgent plus workflows: a flexible multi-actor orchestration system intended to let developers compose agent architectures matched to their use case, interaction modality, and acceptance criteria. The team also built custom evaluation processes and benchmark data that test both outputs and reasoning trajectories.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  builder-needs-research[Builder needs research] --> beeai-framework[BeeAI Framework]
  builder-needs-research --> open-source-community[Open-source community]
  peri-prototype[Peri prototype] --> llama-3-70b-chat[Llama 3-70B-Chat]
  llama-3-70b-chat --> chain-of-thought-prompting[Chain-of-thought prompting]
  chain-of-thought-prompting --> tool-calling-layer[Tool calling layer]
  tool-calling-layer --> peri-prototype
  peri-prototype --> trajectory-explorer[Trajectory explorer]
  trajectory-explorer --> evaluation-process[Evaluation process]
  beeai-framework --> reactagent[ReActAgent]
  beeai-framework --> workflows[Workflows]
  workflows --> reactagent
  workflows --> agent-interaction-modalities[Agent interaction modalities]
  beeai-framework --> open-source-ui[Open-source UI]
  open-source-ui --> agent-interaction-modalities
  open-source-ui --> open-source-community
  beeai-framework --> evaluation-process
  beeai-framework --> security-and-rule-controls[Security and rule controls]
  security-and-rule-controls --> tool-calling-layer
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Builder needs research User and community learning process that shaped framework requirements for everyday builders and full-stack developers. BeeAI Framework, Open-source community
Peri prototype Early proof-of-concept agent that broke queries into substeps, browsed pages, executed code, and synthesized answers. Llama 3-70B-Chat, Tool calling layer, Trajectory explorer
Llama 3-70B-Chat Open-source base model used for the early prototype despite lacking built-in reasoning capabilities. Peri prototype, Chain-of-thought prompting
Chain-of-thought prompting Prompting approach combined with tool calling to elicit agentic behavior from the open-source model. Llama 3-70B-Chat, Tool calling layer
Tool calling layer Mechanism for dynamic interaction with documents, web pages, code execution, and external environments. Peri prototype, Chain-of-thought prompting, Security and rule controls
Trajectory explorer Visual trust and observability surface that exposes the agent's reasoning steps to users. Peri prototype, Evaluation process
BeeAI Framework Open-source TypeScript agent framework built for full-stack developers and later extended with flexible workflows. Builder needs research, ReActAgent, Workflows, Open-source UI, Evaluation process
ReActAgent Renamed opinionated agent implementation acknowledging that no single BeeAgent design is definitive. BeeAI Framework, Workflows
Workflows Flexible multi-actor orchestration system for use-case-specific agent architectures. BeeAI Framework, ReActAgent, Agent interaction modalities
Agent interaction modalities Agent-to-agent, agent-to-human, artifact-style, and UI interaction patterns that shape how users consume agent work. Workflows, Open-source UI
Open-source UI Developer-facing interface initially designed for non-technical users but adopted by developers to interact with and demo agents. BeeAI Framework, Agent interaction modalities, Open-source community
Evaluation process Custom benchmark and regression process that defines supported features, tests new capabilities, and inspects reasoning trajectories. BeeAI Framework, Trajectory explorer
Security and rule controls Identified enterprise controls needed to prevent unintended modifications, irreversible actions, and prompt-only rule violations. Tool calling layer, BeeAI Framework
Open-source community Developer audience that adopted BeeAI, built implementations such as Bee Canvas and UI Builder, and provided traction signals. Builder needs research, Open-source UI

Data flow

The initial agent receives complex user queries, breaks them into sub-steps, navigates web pages, calls tools, executes code, and synthesizes an answer. A trajectory explorer records and displays the agent's reasoning and actions so users can inspect how the answer was produced. The framework layer packages these lessons into BeeAI Framework, where developers can choose ReActAgent or workflow-based multi-actor orchestration, connect tools and interaction modalities, and evaluate features against custom benchmark datasets. The open-source stack and UI provide the consumption layer for developers to interact with, consume, and demo their agents.

5 supporting quotes
“This agent could break down complex queries into sub-steps, navigate multiple web pages to gather supporting information, execute code, and synthesize a well-reasoned response.”article, stated
“A key addition we made was the trajectory explorer, a visual tool that allowed users to investigate the steps taken by the agent to generate its response.”article, stated
“This led to the development of the BeeAI Framework, a TypeScript-based library built specifically to fill this gap.”article, stated
“we introduced workflows, a flexible multi-actor orchestration system that enables users to design and implement agent architectures tailored to their specific requirements.”article, stated
“Beyond assessing outputs, we also analyzed the agent’s reasoning trajectory — how it arrived at answers. This remains a complex, evolving challenge, and accelerating the path from prototyping to production represents a major opportunity in the field. ##”article, stated

Why this architecture

The team built its own framework because existing tools did not meet full-stack developer needs, and because agent architectures vary too much for a single definitive design. The trajectory explorer and interaction modalities address user trust and consumption, while workflows and evaluation processes let teams adapt architecture and acceptance criteria to each production use case.

5 supporting quotes
“We evaluated existing tools for building agents and found a clear gap in addressing the needs of full-stack developers.”article, stated
“Agent architectures exist on a spectrum. There is no one-size-fits-all approach to multi-agent architectures.”article, stated
“Users didn’t just want a correct answer — they wanted to understand how the agent arrived at it. The ability to inspect reasoning steps increased confidence in the system. 2. How the problem is solved matters. Users demonstrated a strong preference for”article, stated
“A robust framework should accommodate this diversity, allowing users to implement architectures that best align with their unique requirements.”article, stated
“Without existing benchmark datasets and tooling that fit our needs, we had to develop our own processes from scratch.”article, stated

Models used: Llama 3-70B-Chat · OpenAI o1 · DeepSeek-R1 · LLMs · BeeAI Framework · ReActAgent · RAG · Tool calling · Chain-of-thought prompting

Scale

Alternatives considered (roads not taken)

Traditional chat GUI only

Rejected because: Users needed to inspect the agent's reasoning trajectory, so the team added a visual trajectory explorer.

“we had to innovate beyond the traditional Chat GUI experience. A key addition we made was the trajectory explorer, a visual tool that allowed users to investigate the steps taken by the agent to generate its response. This feature significantly improved”article, stated
“A key addition we made was the trajectory explorer, a visual tool that allowed users to investigate the steps taken by the agent”article, stated

Using only existing agent frameworks

Rejected because: The team found a gap for full-stack developers and built BeeAI Framework to address it.

“We evaluated existing tools for building agents and found a clear gap in addressing the needs of full-stack developers.”article, stated
“for building agents and found a clear gap in addressing the needs of full-stack developers. This led to the development of the BeeAI Framework, a TypeScript-based library built specifically”article, stated

Closed-source validation of the stack

Rejected because: The team open-sourced the entire stack to see what resonated and measure traction.

“we chose to open-source the entire stack to see what resonated with the community. This allowed us to reach a diverse range of users and measure real-world traction. Press enter or click to view image in full size [BeeAI Open-Source”article, stated
“stack** to see what resonated with the community. This allowed us to reach a diverse range of users and measure real-world traction. Press enter or click to view image in full size BeeAI Open-Source Stack that launched last year. [Image by author] We quickly found”article, stated

One definitive agent design

Rejected because: The team renamed BeeAgent to ReActAgent and added workflows after concluding that production architectures must vary by use case.

3 supporting quotes
“Our initial implementation was opinionated — we designed BeeAgent with our own needs in mind. However, as we gained insights, we renamed it as ReActAgent to acknowledge that no single agent design is definitive and we have plans to [add more”article, stated
“own needs in mind. However, as we gained insights, we renamed it as ReActAgent to acknowledge that no single agent design is definitive and we have plans to add more out-of-the-box single agents. Additionally, we introduced workflows,”article, stated
“we introduced workflows, a flexible multi-actor orchestration system that enables users to design and implement agent architectures tailored to their specific requirements. 2. Consumption and interaction modalities matter. The way end users interact”article, stated

Serving everyday builders and developers equally from the start

Rejected because: Initial traction came from developers, so the team chose to focus on one persona at a time.

“Focus on one persona at a time. Trying to serve multiple user types too soon can dilute impact. While we were excited about reaching everyday builders, our initial traction came from developers — this is the persona we are doubling down on going”article, stated
“our initial traction came from developers — this is the persona we are doubling down on going forward. Additionally, Python is key to unlocking broader adoption, as it remains the dominant language for AI development and allows us to reach a wider”article, stated

Patterns

tool-use-orchestration (agent-runtime)

The prototype and framework combine LLMs with designated tool environments so agents can retrieve documents, navigate pages, execute code, and act beyond chat.

“LLMs can also can dynamically interact with a designated environment via tool calling.”article, stated
“This agent could break down complex queries into sub-steps, navigate multiple web pages to gather supporting information, execute code”article, stated

prompt-chaining (reasoning)

The early agent used chain-of-thought prompting plus tool calling to obtain agentic behavior from Llama 3-70B-Chat despite the model lacking built-in reasoning.

3 supporting quotes
“When combined with chain-of-thought prompting, these capabilities laid the foundation”article, stated
“unlike OpenAI’s o1 and DeepSeek-R1, did not have built-in reasoning capabilities.”article, stated
“We were able to harness agentic capabilities from this model by implementing the architecture detailed in [this article]”article, stated

observability-tracing (trust-and-debugging)

The trajectory explorer exposes the agent's intermediate steps, making reasoning inspectable and increasing user confidence.

3 supporting quotes
“A key addition we made was the trajectory explorer, a visual tool that allowed users to investigate the steps taken by the agent”article, stated
“The ability to inspect reasoning steps increased confidence in the system.”article, stated
“Beyond assessing outputs, we also analyzed the agent’s reasoning trajectory — how it arrived at answers.”article, stated

eval-driven-development (quality)

BeeAI created custom benchmark data, defined every supported feature, regression-tested new capabilities, and evaluated both outputs and reasoning trajectories.

3 supporting quotes
“Without existing benchmark datasets and tooling that fit our needs, we had to develop our own processes from scratch.”article, stated
“Our approach involved defining every feature our agent should support and constructing a custom benchmark dataset.”article, stated
“Whenever we introduced a new capability, we rigorously tested that it did not negatively impact existing functionalities.”article, stated

multi-agent-orchestration (agent-architecture)

BeeAI added workflows as a flexible multi-actor orchestration system so developers can compose custom agent architectures.

3 supporting quotes
“There is no one-size-fits-all approach to multi-agent architectures.”article, stated
“we introduced workflows, a flexible multi-actor orchestration system”article, stated
“agent-to-agent and agent-to-human interaction is a space ripe for innovation”article, stated

human-in-the-loop-gate (interaction-design)

The framework roadmap treats agent-to-human interaction as a core design space, and the trajectory explorer makes human inspection part of trusting agent work.

“agent-to-agent and agent-to-human interaction is a space ripe for innovation”article, stated
“Users didn’t just want a correct answer — they wanted to understand how the agent arrived at it.”article, stated

safety-policy-enforcement (enterprise-readiness)

The team explicitly identifies security amplification and business-rule enforcement as production requirements that cannot be solved by prompting alone.

3 supporting quotes
“Agents amplify existing security challenges. AI agents introduce new security risks by interacting dynamically with external systems.”article, stated
“Potential vulnerabilities range from unintended system modifications to incorrect or irreversible actions.”article, stated
“While prompting can guide AI behavior, it does not guarantee strict adherence to rules.”article, stated

Tradeoffs

Use an open-source non-reasoning model for the early agent prototype

Chose Llama 3-70B-Chat plus agent architecture, tool calling, and chain-of-thought prompting over A model with built-in reasoning such as OpenAI o1 or DeepSeek-R1.

Rationale: The team showed that agentic behavior could be harnessed through architecture even when the model itself lacked built-in reasoning.

3 supporting quotes
“it relied on an open-source model, Llama 3–70B-Chat”article, stated
“unlike OpenAI’s o1 and DeepSeek-R1, did not have built-in reasoning capabilities.”article, stated
“We were able to harness agentic capabilities from this model by implementing the architecture detailed in [this article]”article, stated

Add trajectory exploration to the user experience

Chose A visual trajectory explorer over A traditional final-answer chat interface.

Rationale: The team found that inspecting the reasoning path was necessary for transparency and user trust.

“To make this agent useful for a broad audience, we had to innovate beyond the traditional Chat GUI experience. A key addition we made was the trajectory explorer, a visual tool that allowed users to investigate the steps taken by the agent to generate its response.”article, stated
“This feature significantly improved transparency and user trust. Press enter or click to view image in full size An agent’s trajectory explorer.”article, stated

Build BeeAI Framework

Chose A custom TypeScript-based agent framework over Existing agent tooling.

Rationale: Existing tools left a gap for full-stack developers, and BeeAI could encode the team's requirements throughout the stack.

“We evaluated existing tools for building agents and found a clear gap in addressing the needs of full-stack developers.”article, stated
“This led to the development of the BeeAI Framework, a [TypeScript-based library]”article, stated

Open-source the entire stack

Chose Open community validation and traction measurement over Keeping the framework closed during early development.

Rationale: Open-sourcing let the team see what resonated with different users and gather real-world adoption signals.

“we chose to open-source the entire stack to see what resonated with the community.”article, stated
“This allowed us to reach a diverse range of users and measure real-world traction.”article, stated

Move from BeeAgent to ReActAgent plus workflows

Chose A named single-agent implementation and flexible multi-actor workflow system over A single opinionated framework-default architecture.

Rationale: The team concluded that production users need architecture flexibility tied to specific use cases and acceptance criteria.

“we renamed it as ReActAgent to acknowledge that no single agent design is definitive”article, stated
“workflows**, a flexible multi-actor orchestration system that enables users to design and implement agent architectures”article, stated

Gotchas (what bit them)

Correct answers are insufficient if users cannot inspect the reasoning path.

Root cause: Agent behavior is opaque in a traditional chat GUI, so users lack confidence even when the final response is plausible.

Resolution: Expose trajectories through a visual explorer that lets users investigate the steps taken to generate a response.

3 supporting quotes
“Users didn’t just want a correct answer — they wanted to understand how the agent arrived at it.”article, stated
“The ability to inspect reasoning steps increased confidence in the system.”article, stated
“A key addition we made was the trajectory explorer, a visual tool that allowed users to investigate the steps taken by the agent”article, stated

Users distrust reasoning methods that violate their mental model.

Root cause: Accuracy alone does not capture whether the path to the answer feels appropriate for the task.

Resolution: Design agent behavior and tools to align with expected reasoning, such as using calculators for math rather than scraped search results.

3 supporting quotes
“Users demonstrated a strong preference for reasoning methods that aligned with their expectations.”article, stated
“when solving math problems, they trusted calculator-based solutions over results scraped from search engines.”article, stated
“This underscored the importance of aligning agent reasoning with user expectations.”article, stated

Agentic systems expand the security blast radius.

Root cause: Agents dynamically interact with external systems and can modify state or take irreversible actions.

Resolution: Treat rule enforcement and security controls as framework-level enterprise requirements, not as prompt-only concerns.

3 supporting quotes
“AI agents introduce new security risks by interacting dynamically with external systems.”article, stated
“Potential vulnerabilities range from unintended system modifications to incorrect or irreversible actions.”article, stated
“Enterprise adoption requires enforceable business rules. While prompting can guide AI behavior, it does not guarantee strict adherence to rules.”article, stated

Prompting cannot guarantee enterprise rule compliance.

Root cause: LLM instructions can guide behavior but do not strictly enforce business rules under all conditions.

Resolution: Add comprehensive rule-enforcement mechanisms around agent behavior.

“While prompting can guide AI behavior, it does not guarantee strict adherence to rules.”article, stated
“This highlights the need for a comprehensive set of rule enforcement mechanisms for AI agents.”article, stated

Trying to serve multiple personas too early diluted product focus.

Root cause: The team wanted everyday builders but observed stronger traction from developers.

Resolution: Double down on developers first, including Python feature parity and a cleaner developer experience.

3 supporting quotes
“Trying to serve multiple user types too soon can dilute impact.”article, stated
“our initial traction came from developers — this is the persona we are doubling down on going forward.”article, stated
“Python is key to unlocking broader adoption, as it remains the dominant language for AI development”article, stated

Fragmented repositories created developer-experience friction.

Root cause: A spread of repositories made it harder for newcomers to get value from the stack.

Resolution: Consolidate repositories and create a more seamless developer experience.

“A great developer experience makes it easy for newcomers to get value while providing flexibility for advanced users.”article, stated
“Initially, our spread of repositories led to friction, we are now working to [consolidate]”article, stated

Evaluation

BeeAI's evaluation process was custom-built because existing benchmarks and tooling did not match the framework's needs. The team defined supported features, built a custom benchmark dataset, checked simple controls such as tone and verbosity as well as complex reasoning accuracy, regression-tested new capabilities, and inspected reasoning trajectories in addition to final outputs.

Metrics: Supported feature coverage · Custom benchmark dataset performance · Tone control · Verbosity control · Complex reasoning task accuracy · Regression impact on existing functionality · Reasoning trajectory analysis

6 supporting quotes
“Evaluation is key — and more challenging than ever. Without existing benchmark datasets and tooling that fit our needs, we had to develop our own processes from scratch.”article, stated
“Without existing benchmark datasets and tooling that fit our needs, we had to develop our own processes from scratch.”article, stated
“Our approach involved defining every feature our agent should support and constructing a custom benchmark dataset.”article, stated
“Features ranged from simple aspects like controlling the tone or verbosity of responses to the accuracy of more complex reasoning tasks.”article, stated
“Whenever we introduced a new capability, we rigorously tested that it did not negatively impact existing functionalities.”article, stated
“Beyond assessing outputs, we also analyzed the agent’s reasoning trajectory — how it arrived at answers.”article, stated

Outcomes

The source describes a year of IBM Research incubation rather than a mature enterprise deployment. Concrete scale markers include the early-2024 starting premises, Llama 3-70B-Chat as the prototype model, a TypeScript BeeAI Framework, community projects such as Bee Canvas and UI Builder, and Python feature parity as a top priority for broader adoption.

6 supporting quotes
“we rapidly prototyped an AI agent that — at the time — outperformed commercially available search solutions.”article, stated
“This feature significantly improved transparency and user trust. Press enter or click to view image in full size An agent’s trajectory explorer.”article, stated
“This led to the development of the BeeAI Framework, a [TypeScript-based library]”article, stated
“We quickly found an audience with TypeScript developers, who leveraged BeeAI’s capabilities to build innovative applications.”article, stated
“Bee Canvas and [UI Builder”article, stated
“Python is key to unlocking broader adoption, as it remains the dominant language for AI development”article, stated