Commit Graph

1029 Commits

Author SHA1 Message Date
朱潮
2898c9c42d Merge branch 'feature/tool-error-recovery' into bot_manager 2026-06-20 13:10:29 +08:00
朱潮
06974e9744 feat: recover tool exceptions into ToolMessage so SSE stream keeps flowing
Add ToolErrorRecoveryMiddleware as the outermost agent middleware so any
tool-call exception (notably MCP ToolException) is converted into a
ToolMessage with status="error" carrying the raw error text. The agent
can then loop once more and reply to the user in natural language about
what failed, instead of bubbling the exception up through agent.astream
and breaking the SSE response in routes/chat.py.

The recovery layer extracts the inner `text="..."` payload out of the MCP
TextContent repr when present, falling back to str(error) otherwise. It
deliberately re-raises asyncio.CancelledError so task cancellation still
propagates, and sits *outside* ToolMetricsMiddleware so the existing
status=error metric is still emitted before recovery kicks in.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-20 13:07:19 +08:00
朱潮
6babd6e134 safe print 的base64 字段替换为 [truncated] 2026-06-19 07:51:47 +08:00
朱潮
339144ad80 Merge branch 'feature/multimodal-image-input' into developing 2026-06-19 07:50:08 +08:00
朱潮
69eac00295 safe print 的base64 字段替换为 [truncated] 2026-06-19 07:49:53 +08:00
朱潮
01fb63c955 add EMBEDDING_BASE_URL 2026-06-18 14:56:27 +08:00
朱潮
aabb0ad072 Merge branch 'feature/multimodal-image-input' into developing 2026-06-18 12:54:31 +08:00
朱潮
13bdd9d40a feat: support multimodal image (base64) input in chat API
Normalize OpenAI-style and LangChain standard image blocks into LangChain
standard content blocks so provider block_translators auto-convert for
either OpenAI or Anthropic. Flatten multimodal content to plain text when
persisting history and computing term embeddings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 11:34:57 +08:00
朱潮
f85ddaf127 fix: remove stray sympy import causing startup failure
The unused 'from sympy.printing.cxx import none' was accidentally added
by IDE autocomplete. sympy is not installed in the image, so importing
agent/deep_assistant.py raised ModuleNotFoundError and the API server
crash-looped on startup.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 15:47:52 +08:00
朱潮
9bd40d9bd7 Merge branch 'feature/no_answer' into dev 2026-06-16 13:22:12 +08:00
朱潮
d8378fbb70 add no answer tag 2026-06-16 13:19:23 +08:00
朱潮
838111c0fe onrepm static hosting 2026-06-15 15:11:03 +08:00
朱潮
e009db3cf7 修改投降尺寸 2026-06-15 14:29:24 +08:00
朱潮
888a93e2f7 修改投降尺寸 2026-06-15 13:37:30 +08:00
朱潮
eb5dcc5a80 修改投降尺寸 2026-06-15 13:36:21 +08:00
朱潮
e1d66385bf set_avatar_file 2026-06-14 17:04:23 +08:00
朱潮
0e90b550a4 set_avatar_file 2026-06-14 16:46:27 +08:00
朱潮
e3c6408802 add poem-storyboard 2026-06-14 15:27:59 +08:00
朱潮
acb9330354 add poem-storyboard 2026-06-14 11:36:35 +08:00
朱潮
0e8eef8eaa add 视频地址渲染 2026-06-14 10:19:48 +08:00
朱潮
504fc95196 add 视频地址渲染 2026-06-14 10:10:23 +08:00
朱潮
db89ab158a add build-essential 2026-06-14 09:35:37 +08:00
朱潮
ec2e0acea2 add agnes-image 2026-06-14 08:16:00 +08:00
朱潮
195bd49236 Merge branch 'developing' into bot_manager 2026-06-13 19:28:37 +08:00
github-actions[bot]
79b2c35d49
chore(.features): sync feature memory (auto) (#55)
Generated by sparticle-toolkit feature-memory-sync

Co-authored-by: Denya0529 <217564326+Denya0529@users.noreply.github.com>
2026-06-12 17:00:20 +00:00
朱潮
73042c57a6 add subagent_context_middleware 2026-06-12 15:56:26 +08:00
朱潮
e2827c6a47 add mainAgentHiddenTools 2026-06-12 11:03:30 +08:00
csh28
9a7d64bb59
Merge pull request #48 from sparticleinc/codex/remove-heavy-embedding-deps
[codex] Remove heavy embedding dependencies
2026-06-09 18:08:42 +08:00
csh28
f42a9e484a Remove heavy embedding dependencies 2026-06-09 08:56:31 +08:00
朱潮
cb649d83ee Merge branch 'developing' into bot_manager
# Conflicts:
#	.features/skill/MEMORY.md
#	poetry.lock
#	requirements.txt
2026-06-08 20:07:30 +08:00
朱潮
cfb0babf2a Merge branch 'prod' of https://github.com/sparticleinc/catalog-agent into prod 2026-06-08 19:54:30 +08:00
朱潮
065403223d Merge branch 'dev' into developing 2026-06-08 19:44:11 +08:00
朱潮
fabb14c66a Merge branch 'feature/enable_redis' into dev
# Conflicts:
#	poetry.lock
2026-06-08 19:43:27 +08:00
朱潮
77079539c1 refactor: remove file-parsing knowledge-base pipeline and Huey queue
The local file-parsing pipeline (upload -> Huey async parse -> generate
projects/data/.../document.txt) is no longer needed: RAG retrieval runs
against the backend vector store and does not read the local parse output,
so removing this has zero impact on existing bot Q&A.

- Delete task_queue/ (Huey queue, consumer, tasks, task status store)
- Delete parsing utils: dataset_manager, single_file_processor,
  data_merger, project_manager
- Delete db_manager.py (only managed task_status.db)
- routes/files.py: keep only POST /api/v1/upload; drop all
  parse/queue/task endpoints
- routes/projects.py: drop /tasks endpoint and task_status import
- utils/__init__.py & api_models.py: remove exports/models for deleted
  modules and queue task models
- start_unified.py & start_all_optimized.sh: no longer launch the
  queue consumer
- Drop huey dependency (keep redis)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 19:40:58 +08:00
朱潮
e6b28818bf add REDIS_URL 2026-06-08 19:00:55 +08:00
朱潮
955a064ee3 add reviewer 2026-06-08 18:32:51 +08:00
朱潮
4a5d8d05cf merge 2026-06-07 18:33:09 +08:00
朱潮
1fc105a732 透传接口现在支持视觉图片识别 2026-06-07 11:02:10 +08:00
朱潮
f45f55b50a add /api/v3/llm/chat/completions 2026-06-07 10:57:34 +08:00
朱潮
f18d966123 add /api/v3/llm/chat/completions 2026-06-07 10:55:25 +08:00
朱潮
8466b0e710 add expense-approval-reviewer 2026-06-07 10:50:17 +08:00
朱潮
d009411360 Merge branch 'developing' into bot_manager 2026-06-07 10:26:43 +08:00
朱潮
bb74aee41b add table-query 2026-06-07 08:58:22 +08:00
github-actions[bot]
88fa7cc05c
chore(.features): sync feature memory (auto) (#47)
Generated by sparticle-toolkit feature-memory-sync

Co-authored-by: Denya0529 <217564326+Denya0529@users.noreply.github.com>
2026-06-05 16:49:13 +00:00
朱潮
0983623a75 Merge branch 'developing' into dev 2026-06-05 14:53:31 +08:00
朱潮
ecf332add5 modify ag_retrieve 2026-06-05 14:49:54 +08:00
朱潮
b618cb12d2 add mineru 2026-06-05 14:35:17 +08:00
朱潮
22b9ad4877 Merge branch 'feature/mcp-ui' into developing 2026-06-03 19:43:02 +08:00
朱潮
0af1890493 Merge branch 'prod' of https://github.com/sparticleinc/catalog-agent into prod 2026-06-03 08:57:30 +08:00
朱潮
93e79f1a0e Merge branch 'staging' of https://github.com/sparticleinc/catalog-agent into staging 2026-06-02 21:13:07 +08:00