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.
| 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 (stop, status, rename), 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 runs, in the background, the evaluations started from Studio and the Observation analysis. |
| 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. It may also rewrite the user message, or add context for this turn to the system prompt (additional_context).done event. Output that hook and tool flows write to the chat stream (for example an LLMInvoke actor with streaming on) is streamed in the same format.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.
| 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 (stop, status, rename), 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 runs, in the background, the evaluations started from Studio and the Observation analysis. |
| 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. It may also rewrite the user message, or add context for this turn to the system prompt (additional_context).done event. Output that hook and tool flows write to the chat stream (for example an LLMInvoke actor with streaming on) is streamed in the same format.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