AI Fusion 3 runs entirely inside K2view Fabric. Agents are defined as files in your Data Products, executed by an agent runtime delivered in the aifusion Data Product, and reached through Fabric web services. LLM providers are accessed through Fabric AI interfaces, and every conversation is persisted for trace, evaluation and observation.
This article describes the components and how a request flows through them.
┌──────────────────────────┐ ┌──────────────────────────┐ ┌─────────────────────┐
│ AI Fusion Studio │ │ Observation web app │ │ Your application / │
│ (Agent Editor, Preview, │ │ (dashboard, conversation │ │ channel (REST, SSE) │
│ Eval Editor) │ │ review) │ │ │
└────────────┬─────────────┘ └────────────┬─────────────┘ └──────────┬──────────┘
└───────────────┬──────────────┴────────────────────────────┘
▼
Fabric web services (k2_ws): agent (SSE), stop-session, agents,
chats, feedback, observation, evaluation, trace-history ...
▼
┌────────────────────────────────────────────────────────────────────────────────────┐
│ Agent runtime (aifusion Data Product, flow aifusion.Agent) │
│ session = aifusion LU instance · hooks · tools · sub-agents · skills · references │
└───────┬───────────────────┬──────────────────────┬──────────────────────┬──────────┘
▼ ▼ ▼ ▼
Agent definitions Business Data Products LLM interfaces MCP servers
<LU>/AI/Agents/... (entity micro-DB, flows) (Anthropic, Bedrock, (Mcp interface)
OpenAI, Google, Ollama)
│
▼
Persistence: aifusion LU (per-session trace) + insights DB (sessions, signals, evaluation)
| Component | Role |
| Agent definitions | Files under <LU>/AI/ in each Data Product: agent.yaml, sub-agents, skills, reference packs, eval suites and observation configuration. Fabric captures them when the LU is deployed. See Agents Overview. |
| aifusion Data Product | Delivered by the aifusion extension. Contains the agent runtime, the session tables, the observation and evaluation flows, and the Observation web application. |
| Web services | Delivered in the k2_ws LU. They expose the agent API, session management, feedback, observation, evaluation and trace endpoints. See Invoking Agents. |
| Business Data Products | The LUs that hold your entity data (customer, account, policy). A hook flow loads the relevant instance into the session, and the agent queries it with the built-in query tool or calls its Broadway flows as tools. |
| LLM connectors | Separate extensions that add AI interface types for each provider. Agents refer to an interface by name. See LLM Connectors. |
| MCP client | The optional mcp extension adds the MCP interface type, so agents can use tools from MCP servers. |
| Pipeline | The pipeline extension executes evaluation runs and observation analysis pipelines. |
| AI Fusion Studio | The aifusion-studio extension for K2view Web Studio. See AI Fusion Studio. |
agent web service with the agent name, its Data Product, a session ID, the user's message and, optionally, the agent inputs (initParams, for example {"customerId":"1001"}). The response is a Server-Sent Events stream.agent.yaml from the deployed Data Product, resolves its tools, skills, sub-agents and hooks, and builds the system prompt.step_start hook flow typically loads the customer's instance of the business Data Product, so its micro-database is available to the query tool, and may enrich the user message.done event.step_end hook can post-process the answer.Each conversation is one instance of the aifusion LU; the instance ID is the session ID. Its main tables are:
Session-level data used by Observation and Evaluation is kept in a relational database, SQLite by default (assurance interface) or PostgreSQL. The tables are created by the deploy of the aifusion LU. See Insights Database Schema.
Agents belong to the Data Product whose data they work on:
<LU>/AI/
├── Skills/ LU-wide skills
└── Agents/<agent>/
├── agent.yaml the agent definition
├── Skills/ agent-private skills
├── Subagents/ sub-agent definitions (*.yaml)
├── References/<pack>/ reference documents (e.g. KB/, Procedures/)
├── Evals/ evaluation suites (*.csv)
└── Observation/ signals.yaml, widgets.yaml
Because the definitions are files in the project, they are version-controlled with the rest of the implementation and promoted between environments with a regular deploy. Changes take effect after the LU is deployed (a soft deploy is enough).
Next article: Installation and Setup
AI Fusion 3 runs entirely inside K2view Fabric. Agents are defined as files in your Data Products, executed by an agent runtime delivered in the aifusion Data Product, and reached through Fabric web services. LLM providers are accessed through Fabric AI interfaces, and every conversation is persisted for trace, evaluation and observation.
This article describes the components and how a request flows through them.
┌──────────────────────────┐ ┌──────────────────────────┐ ┌─────────────────────┐
│ AI Fusion Studio │ │ Observation web app │ │ Your application / │
│ (Agent Editor, Preview, │ │ (dashboard, conversation │ │ channel (REST, SSE) │
│ Eval Editor) │ │ review) │ │ │
└────────────┬─────────────┘ └────────────┬─────────────┘ └──────────┬──────────┘
└───────────────┬──────────────┴────────────────────────────┘
▼
Fabric web services (k2_ws): agent (SSE), stop-session, agents,
chats, feedback, observation, evaluation, trace-history ...
▼
┌────────────────────────────────────────────────────────────────────────────────────┐
│ Agent runtime (aifusion Data Product, flow aifusion.Agent) │
│ session = aifusion LU instance · hooks · tools · sub-agents · skills · references │
└───────┬───────────────────┬──────────────────────┬──────────────────────┬──────────┘
▼ ▼ ▼ ▼
Agent definitions Business Data Products LLM interfaces MCP servers
<LU>/AI/Agents/... (entity micro-DB, flows) (Anthropic, Bedrock, (Mcp interface)
OpenAI, Google, Ollama)
│
▼
Persistence: aifusion LU (per-session trace) + insights DB (sessions, signals, evaluation)
| Component | Role |
| Agent definitions | Files under <LU>/AI/ in each Data Product: agent.yaml, sub-agents, skills, reference packs, eval suites and observation configuration. Fabric captures them when the LU is deployed. See Agents Overview. |
| aifusion Data Product | Delivered by the aifusion extension. Contains the agent runtime, the session tables, the observation and evaluation flows, and the Observation web application. |
| Web services | Delivered in the k2_ws LU. They expose the agent API, session management, feedback, observation, evaluation and trace endpoints. See Invoking Agents. |
| Business Data Products | The LUs that hold your entity data (customer, account, policy). A hook flow loads the relevant instance into the session, and the agent queries it with the built-in query tool or calls its Broadway flows as tools. |
| LLM connectors | Separate extensions that add AI interface types for each provider. Agents refer to an interface by name. See LLM Connectors. |
| MCP client | The optional mcp extension adds the MCP interface type, so agents can use tools from MCP servers. |
| Pipeline | The pipeline extension executes evaluation runs and observation analysis pipelines. |
| AI Fusion Studio | The aifusion-studio extension for K2view Web Studio. See AI Fusion Studio. |
agent web service with the agent name, its Data Product, a session ID, the user's message and, optionally, the agent inputs (initParams, for example {"customerId":"1001"}). The response is a Server-Sent Events stream.agent.yaml from the deployed Data Product, resolves its tools, skills, sub-agents and hooks, and builds the system prompt.step_start hook flow typically loads the customer's instance of the business Data Product, so its micro-database is available to the query tool, and may enrich the user message.done event.step_end hook can post-process the answer.Each conversation is one instance of the aifusion LU; the instance ID is the session ID. Its main tables are:
Session-level data used by Observation and Evaluation is kept in a relational database, SQLite by default (assurance interface) or PostgreSQL. The tables are created by the deploy of the aifusion LU. See Insights Database Schema.
Agents belong to the Data Product whose data they work on:
<LU>/AI/
├── Skills/ LU-wide skills
└── Agents/<agent>/
├── agent.yaml the agent definition
├── Skills/ agent-private skills
├── Subagents/ sub-agent definitions (*.yaml)
├── References/<pack>/ reference documents (e.g. KB/, Procedures/)
├── Evals/ evaluation suites (*.csv)
└── Observation/ signals.yaml, widgets.yaml
Because the definitions are files in the project, they are version-controlled with the rest of the implementation and promoted between environments with a regular deploy. Changes take effect after the LU is deployed (a soft deploy is enough).
Next article: Installation and Setup