Product Overview

Agent Development and Workflow Orchestration for Qt Applications

Qt-UI AgentKit brings model access, prompt orchestration, tool calling, structured output, memory, RAG, state workflows, human approval, and execution tracing to Qt Widgets applications, helping desktop software build controllable, debuggable, and integrated AI agents.

View Docs

Provides OpenAI-compatible and DeepSeek model clients, offline Mock model, and unified model configuration UI.

Includes tool registration, function tool calls, permission approval, execution tracing, and trace display widgets.

Supports Prompt Template, output parsing, chat memory, RAG retrieval, and state workflow orchestration.

Ships with a native Qt Widgets demo where each capability can be tested independently and integrated into desktop products.

Product Capabilities

Product Capabilities Organized by AgentKit Modules

AgentKit provides complete agent development capabilities around model access, prompt orchestration, tool calling, structured output, memory, RAG, and state workflows.

View Capability Docs

Model Chat

Supports offline Mock model, OpenAI-compatible APIs, and DeepSeek APIs, covering chat, streaming, cancellation, and error handling.

Capability Details

A unified ChatModel abstraction wraps model requests. Application code builds a ChatRequest and listens to ChatReply signals for deltas, final output, and errors.

Call Example
ChatRequest request;
request.addSystemMessage("你是 Qt 应用助手。");
request.addUserMessage("分析当前设备状态。");

ChatReply* reply = model->chat(request, {}, this);
connect(reply, &ChatReply::deltaReceived, this, &Panel::appendText);
connect(reply, &ChatReply::finished, this, &Panel::finishText);

Prompt and Chain

Provides PromptTemplate, ChatPromptTemplate, Runnable Chain, and Parallel branches to compose prompts, models, and parsers into business flows.

Capability Details

Prompt templates handle variable substitution, while RunnableChain connects templates with models so repeatable product flows can be packaged as reusable units.

Call Example
RunnableChain chain;
chain.setSystemPrompt("你是 Qt 架构顾问。");
chain.setPrompt(PromptTemplate("请分析 {topic} 的实现方案。"));
chain.setModel(model);

ChatReply* reply = chain.invoke({ { "topic", "工具调用审批" } }, this);

Output Parsing

Includes string, JSON, and structured output parsers so model responses can be consumed by Qt application logic.

Capability Details

When the model should return structured data, JsonOutputParser or StructuredOutputParser can validate fields and convert text into QJsonObject.

Call Example
QString error;
StructuredOutputParser parser({ "title", "risk", "action" });

QJsonObject data = parser.parse(modelText, &error);
if (!error.isEmpty()) {
    qWarning() << error;
}

Memory and RAG

ChatMemory stores conversation context, while InMemoryRetriever and SimpleRagChain demonstrate local retrieval augmented generation.

Capability Details

ChatMemory keeps multi-turn messages. SimpleRagChain retrieves local context first, then sends both context and question to the model.

Call Example
InMemoryRetriever retriever;
retriever.setDocuments({
    "AgentKit 支持工具调用、审批和 Trace。",
    "StateGraph 用于状态流程编排。"
});

SimpleRagChain rag;
rag.setRetriever(retriever);
rag.setModel(model);
ChatReply* reply = rag.ask("如何做流程编排?", 2, this);

Tool Calling and Approval

Tool registration, arguments, traces, and permission approval form a complete loop, with confirmation before higher-risk actions such as file writes.

Capability Details

FunctionTool registers local C++ functions as tools, while AgentExecutor handles tool calls, traces, and approval for higher-risk permissions.

Call Example
registry->registerTool(new FunctionTool(
    "query_device_status",
    "查询设备状态",
    schema,
    ToolPermission::ReadOnly,
    [](const QJsonObject& args) {
        return ToolResult{ true, {}, "设备状态正常" };
    },
    registry));

State Workflow

StateGraph supports nodes, conditional edges, loops, checkpoints, and human review for traceable Agent workflows.

Capability Details

StateGraph uses QJsonObject as state. Nodes return partial updates, and normal or conditional edges decide the next step.

Call Example
StateGraph graph;
graph.addNode("step", [](const QJsonObject& state) {
    return QJsonObject{ { "count", state.value("count").toInt() + 1 } };
});
graph.addEdge(StateGraph::start(), "step");
graph.addEdge("step", StateGraph::end());

GraphRunResult result = graph.invoke({ { "count", 0 } });
License Compare

Qt-UI AgentKit License Comparison

The trial edition is only for evaluation, learning, and prototype validation. Source code is not included and commercial use is not permitted. Paid license tiers are intended for commercial use and include the corresponding source package.

Feature / Edition Trial Edition Free Basic Edition (AgentKit) RMB 6,800 Full Edition RMB 12,800
Description For evaluation, learning, and prototype validation only. Source code is not included and commercial use is not permitted. Includes the complete source code for this product, for one commercial project, with one year of free version upgrades. Includes the complete source code for all four Qt-UI products, for unlimited commercial projects, with one year of free version upgrades.
Usage Evaluation / prototype validation / non-commercial use only Current product / single commercial project All four products / unlimited commercial projects
Source and Assets Trial package, source code not included Complete source package for the current product Complete source packages for all four products
Updates No guaranteed updates One year of free version upgrades One year of free version upgrades
Support Trial feedback Email and ticket support Email, tickets, and priority support
Download

Trial Edition Download and Product Email Updates

Enter your name and email to receive the trial edition download link. Source code is not included; the trial is only for evaluation, learning, and prototype validation, and commercial use is not permitted. For commercial use and full source code, purchase Basic or Full Edition. Phone, company, and notes are optional.

Example Cases

Random Product Cases

See how StyleKit, WidgetKit, ChartKit, and AgentKit work together in industrial monitoring, energy, and clinical workspace scenarios.

Current product: Qt-UI AgentKit
License

Qt-UI AgentKit Commercial License

Basic and Full editions support commercial use. Basic Edition includes the current product, while Full Edition includes all four products. The order form creates an order and starts Alipay checkout; after payment, licensed source packages are available from the Member Center.