添加 RuntimeContext 类用于捕获模型运行时的日期时间信息, 包括UTC时间、本地时间和时区信息,并在系统提示中显示这些信息。 同时增加最大上下文消息数和工具迭代次数的配置选项, 将验证服务从引擎加载器中移除,并更新相关的数据结构和接口。 BREAKING CHANGE: 移除了验证服务,相关字段被替换为证据状态和接受状态。 - 添加 RuntimeContext 类和相关渲染方法 - 增加 max_context_messages 和 max_tool_iterations 配置 - 移除 ValidationService 相关代码 - 更新消息记录中的验证状态字段 - 添加原始工具调用检测和回退处理
48 lines
2.4 KiB
HTML
48 lines
2.4 KiB
HTML
<!doctype html>
|
||
<html lang="zh-CN">
|
||
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Integrations 模块蓝图</title><link rel="stylesheet" href="blueprint.css"></head>
|
||
<body><main class="page">
|
||
<header class="topbar"><h1>Integrations</h1><p>Integrations 是外部系统边界。当前主要包括 MCP client 连接、AuthZ 客户端、Outlook,以及 A2A/WhatsApp 的占位接入。</p></header>
|
||
<nav class="nav"><a href="index.html">索引</a><a href="tools.html">Tools</a><a href="services.html">Services</a></nav>
|
||
<section class="content">
|
||
<h2>大模块流程</h2>
|
||
<div class="flow">
|
||
<div class="step"><strong>配置</strong>外部服务 target/token</div><div class="arrow">-></div>
|
||
<div class="step"><strong>连接</strong>MCP/AuthZ/Outlook client</div><div class="arrow">-></div>
|
||
<div class="step"><strong>适配</strong>转成内部 tool/client API</div><div class="arrow">-></div>
|
||
<div class="step"><strong>消费</strong>ToolRegistry 或 Services 调用</div>
|
||
</div>
|
||
|
||
<h2>小模块拆分</h2>
|
||
<article class="module">
|
||
<h3>MCP client</h3>
|
||
<p>Engine boot 时 MCP manager 连接配置中的 MCP servers,把远程 tool 描述包装为 Beaver ToolSpec 并注册到 ToolRegistry。</p>
|
||
<div class="subflow">
|
||
<div>读取 MCP server 配置。</div>
|
||
<div>connect_all 建立连接并拉取工具列表。</div>
|
||
<div>MCP wrapper 转换工具 schema 和 callable。</div>
|
||
<div>ToolAssembler 后续按任务选择这些工具。</div>
|
||
</div>
|
||
</article>
|
||
|
||
<article class="module">
|
||
<h3>AuthZ</h3>
|
||
<p>权限授权系统的外部客户端边界。当前实际权限模块仍是骨架,AuthZ client 是后续接入策略判断的位置。</p>
|
||
<div class="subflow">
|
||
<div>Service 或 Tool 发起授权检查。</div>
|
||
<div>AuthZ client 调外部服务。</div>
|
||
<div>返回 allow/deny/context。</div>
|
||
</div>
|
||
</article>
|
||
|
||
<article class="module">
|
||
<h3>Outlook / A2A / WhatsApp</h3>
|
||
<p>这些是面向外部渠道或平台的适配边界。成熟路径应保持“集成层只做协议适配,业务语义进入 Services”。</p>
|
||
<div class="subflow">
|
||
<div>外部事件或 API 请求进入 client。</div>
|
||
<div>规范化成内部消息、工具结果或服务参数。</div>
|
||
<div>交给 AgentService/ToolExecutor,不在集成层直接拼业务 prompt。</div>
|
||
</div>
|
||
</article>
|
||
</section></main></body></html>
|