Commit Graph

696 Commits

Author SHA1 Message Date
朱潮
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
朱潮
e6d16982ab 更新retrieval-policy.md 2026-05-11 16:54:14 +08:00
csh28
331229482d Merge feature/agent-final-answer-first-char into dev 2026-05-11 14:13:28 +08:00
csh28
1e608f0092 Merge feature/agent-final-answer-first-char into developing 2026-05-11 14:00:34 +08:00
csh28
1f06450402 Propagate trace id through MCP metadata 2026-05-08 18:59:42 +08:00
csh28
951948639e Add agent final answer first char metric 2026-05-08 15:43:48 +08:00
朱潮
01457b4ffb Dockerfile.modelscope 2026-05-07 23:16:50 +08:00
朱潮
18e9200be2 字节码不编译/skills /projects/ 2026-05-07 23:00:53 +08:00
朱潮
a9227b8046 support add kfs-answer 2026-05-06 19:39:53 +08:00
朱潮
3c0fa498b5 🐛 fix(sync): sync dataset symlinks to Daytona sandbox
The incremental sync used `find -type f` which misses symlinks (type l),
so dataset symlinks were never detected and synced to the sandbox.
Additionally, `tar.add()` without `dereference=True` would store broken
symlinks pointing to host-only paths.

- _list_local_changed_files: match both regular files and symlinks
- _tar_workspace_entries: dereference symlinks to pack actual content
- Unify dataset path to `datasets/` (plural) in prompts and SKILL.md

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-06 19:37:00 +08:00
朱潮
425f3c5bb4 chore: replace Chinese comments and log messages with English
Convert all Chinese comments, docstrings, logger/print output,
HTTPException detail messages, and API response messages to English
across the entire codebase. Functional zh/ja localized strings
(e.g. prompt templates, timezone display names, date formats) are
preserved as-is.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-30 19:45:35 +08:00
朱潮
185743fe62 ci: include branch in lark notification titles
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-30 07:47:10 +08:00
朱潮
b148ed111c ci: include image in deploy notifications
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-30 07:42:16 +08:00
朱潮
a0ef1728cf ci: notify after image push succeeds
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-29 19:54:22 +08:00