Commit Graph

709 Commits

Author SHA1 Message Date
朱潮
86c58ffccf update dep 2026-05-20 16:01:56 +08:00
朱潮
3fd12e9fc6 Merge branch 'dev' of https://github.com/sparticleinc/catalog-agent into dev 2026-05-20 14:59:46 +08:00
朱潮
46cf0933a0 Merge branch 'feature/mcp-ui' into dev 2026-05-20 14:58:19 +08:00
朱潮
1a1df7f76b 优化为标准mcp app协议 2026-05-20 14:54:07 +08:00
autobee-sparticle
a1fffa311b
Merge pull request #32 from sparticleinc/bugfix/autobee-20260519-novare-contact-routing
[NOVARE] 修复联系方式查询误路由到发送消息的问题
2026-05-19 23:02:12 +09:00
ae99d7a177 fix(novare): 修复联系方式查询误路由到发送消息的问题
## 问题
用户询问「プランニンググループの連絡先」时,Bot 误路由到
wowtalk_send_message_to_member(发送消息)而不是查询联系方式。

## 修复
1. 新增「联系方式查询场景」示例,明确区分查询与发送
2. 新增规则 9:联系方式/组织图查询规则
3. 新增规则 10:工具失败时的降级回复规则,避免空循环

## 关键区别
- 「連絡先を知りたい」→ 查询场景,使用 rag_retrieve
- 「連絡して」→ 发送场景,使用 wowtalk_send_message_to_member

Ref: #2993

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-19 13:52:18 +00:00
朱潮
2f4ad22293 Merge branch 'feature/mcp-ui' into dev 2026-05-19 19:20:09 +08:00
朱潮
c87daabd31 修改mcp协议 2026-05-19 19:19:39 +08:00
朱潮
7615bd36ca 修改mcp协议 2026-05-19 18:54:37 +08:00
朱潮
2a243202c9 修改mcp协议 2026-05-19 17:46:20 +08:00
朱潮
7f66279311 修改mcp-ui协议 2026-05-19 15:27:36 +08:00
qianlir
3e142b22e5
Merge pull request #31 from sparticleinc/revert-29-fix/add-opensearch-py-onprem
Revert "Fix/add opensearch py onprem"
2026-05-19 11:15:17 +08:00
qianlir
89e9f9b6d6
Revert "Fix/add opensearch py onprem" 2026-05-19 11:14:54 +08:00
朱潮
76f04d9b24 Merge branch 'dev' of https://github.com/sparticleinc/catalog-agent into dev 2026-05-19 11:08:28 +08:00
朱潮
26f244183c static-hosting 2026-05-18 22:17:40 +08:00
朱潮
add8a1fd18 使用 mcp_ui_server 库构建 UIResource 2026-05-18 20:19:10 +08:00
qianlir
9f9c78548d
Merge pull request #29 from sparticleinc/fix/add-opensearch-py-onprem
Fix/add opensearch py onprem
2026-05-18 19:54:28 +08:00
qianlir
538be7da2c feat(deps): add opensearch-py for pmda-drug-info skill MCP server
pmda-drug-info skill's pmda_server.py imports opensearchpy to query
the OpenSearch pmda_sections index. catalog-agent base image already
ships psycopg (for PG drug_master queries) but was missing
opensearch-py, so the MCP stdio server failed at import time with
ModuleNotFoundError → 0 tools exposed to the bot.

Add opensearch-py >=2.2.0,<3.0.0 to pyproject.toml dependencies and
the matching pinned line (opensearch-py==2.7.1) to requirements.txt.

Verified pmda-drug-info needs:
  from opensearchpy import OpenSearch       # os_client.py
  from opensearchpy.helpers import bulk     # ingest path

After this image is rebuilt and deployed to onprem-dev, MCP stdio
servers loaded from skill plugin.json start cleanly and tools/list
returns the 10 tools from pmda_tools.json.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 19:51:38 +08:00
朱潮
cb4a1df0b4 update mcp-ui 2026-05-18 16:23:32 +08:00
朱潮
fd43415a59 优化ask_user_guide.md 2026-05-18 13:13:31 +08:00
朱潮
18ad1fe156 优化ask_user 2026-05-18 12:43:06 +08:00
朱潮
0bf7a87a0e LLM 只需处理极短的 "Questions sent to user." 而不是完整的问题 JSON,减少了 token 消耗和延迟 2026-05-18 11:37:23 +08:00
朱潮
30389be119 update ask_user 2026-05-17 14:20:38 +08:00
朱潮
4c5094b275 在 guide 里约束 LLM 行为 — 告诉模型不要加这类引导语,因为前端已经有交互式 UI 了 2026-05-17 14:14:42 +08:00
朱潮
02085b789a support mcpUiUrl 2026-05-17 14:07:25 +08:00
朱潮
52a8a88cd7 add ask user question muti select 2026-05-17 09:27:05 +08:00
朱潮
82b1676b75 add mcp-ui 2026-05-17 08:22:22 +08:00
朱潮
14b7ed7a55 Merge branch 'developing' into feature/mcp-ui 2026-05-17 08:20:07 +08:00
朱潮
c095c8f5ba add mcp-ui 2026-05-17 08:19:47 +08:00
朱潮
03a30537ab ask user question 2026-05-15 19:25:08 +08:00
朱潮
26582f7d39 add config.tool_response or is_ui_resource — UIResource 始终输出,其他 tool response 仍受 tool_response 参数控制 2026-05-15 18:02:26 +08:00
朱潮
11e2ce2c17 add mcp-ui 2026-05-15 17:57:09 +08:00
朱潮
b842778be0 add mcp-ui 2026-05-15 14:22:10 +08:00
朱潮
5dfe2eba28 feat: add bot_id and model to langfuse metadata
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-14 18:14:41 +08:00
朱潮
32508ae9d4 fix: langfuse CallbackHandler API and tarfile dereference parameter
- Update langfuse CallbackHandler to use trace_context instead of removed trace_id/session_id/user_id params
- Pass session_id/user_id via LangChain metadata with langfuse_ prefix
- Move dereference param from TarFile.add() to tarfile.open()

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-14 17:14:37 +08:00
朱潮
0c84beaeb0 add langfuse 2026-05-14 16:45:21 +08:00
朱潮
3f895f8fe4 add langfuse 2026-05-14 12:14:21 +08:00
朱潮
7b4f03d340 更新policy.md 2026-05-12 12:40:12 +08:00
朱潮
be96f240b3 更新几个 policy.md 2026-05-12 10:05:24 +08:00
csh28
65db950aa8 Merge branch 'feature/agent-final-answer-first-char' into dev 2026-05-11 21:05:53 +08:00
csh28
a9aaa851e9 chore: Add methods tools/call. 2026-05-11 21:05:41 +08:00
csh28
6d9bcc0400 Merge origin/dev into dev 2026-05-11 20:56:47 +08:00
csh28
9d00bad5f2 Merge feature/agent-final-answer-first-char into dev 2026-05-11 20:45:42 +08:00
csh28
e4fc0db07d chore: improve agent error logging 2026-05-11 20:29:27 +08:00
朱潮
9eb1d6b068 Merge branch 'feature/moshui20260511-sub-agents' into dev 2026-05-11 20:16:29 +08:00
朱潮
a92096a646 pmda-drug-infomock数据 2026-05-11 19:15:03 +08:00
朱潮
2abb3ff756 Merge branch 'feature/moshui20260511-sub-agents' into dev 2026-05-11 18:55:32 +08:00
朱潮
5b634bc2ab 增加子agent支持 2026-05-11 18:55:25 +08:00
朱潮
ff8d9f453e Merge branch 'developing' into dev 2026-05-11 16:55:40 +08:00
朱潮
dcfc43a25b Merge branch 'developing' of https://github.com/sparticleinc/catalog-agent into developing 2026-05-11 16:54:22 +08:00