Commit Graph

2450 Commits

Author SHA1 Message Date
archer
04b7153c5e feat: plan interactive type 2025-10-09 15:24:45 +08:00
archer
97198abe7e feat: sub tool response 2025-10-09 15:21:03 +08:00
archer
843388ce44 perf: sub agent output 2025-10-09 15:18:54 +08:00
archer
bec13053aa perf: plan agent name 2025-10-09 15:18:53 +08:00
francis
cc6d7a51d9 feat: add dispatchApp (#5612) 2025-10-09 15:18:53 +08:00
archer
43bfef539e perf: stream response add id 2025-10-09 15:18:53 +08:00
archer
9fdf30de25 workflow response 2025-10-09 15:18:52 +08:00
archer
fc0577859b perf: agent call code 2025-10-09 15:18:35 +08:00
archer
8b5cfbdc4d fix: ts 2025-10-09 15:18:35 +08:00
archer
1fe182505a perf: agent form editor 2025-10-09 15:18:35 +08:00
francis
7427d9b76f feat: refactor agent dispatch functions and improve tool call handling (#5606) 2025-10-09 15:18:35 +08:00
archer
7bd725d2c8 fix: toolset rewrite 2025-10-09 15:18:35 +08:00
archer
721787b3ad add lang 2025-10-09 15:18:35 +08:00
archer
2403f0db3d feat: agent app editform 2025-10-09 15:18:33 +08:00
francis
2e573891de feat: add plan agent & model agent (#5577)
* refactor: agent call (#5572)

* feat: Add relevant functions related to agent invocation, including plan parsing, state management and tool invocation

* Refactor agent call logic and utilities

- Simplified the `runAgentCall` function by removing unnecessary complexity and restructuring the flow for better readability and maintainability.
- Introduced helper functions to create tools from tool nodes and to prepare agent messages, enhancing modularity.
- Removed the `utils.ts` file as its functions were integrated into the main logic, streamlining the codebase.
- Updated the dispatch logic in `index.ts` to utilize the new helper functions and improve clarity.
- Adjusted the handling of interactive modes and tool calls to ensure proper response formatting and error handling.

* refactor: clean up the processing logic of the interactive mode and remove the unused tool creation functions

* feat: add relevant constants for proxy configuration and update the proxy call logic

* refactor: remove unused configuration variables from workflow properties

* refactor: remove unused configuration variables from dispatchRunAgents props

* fix: build error

* refactor: update FlowNodeTypeEnum values and consolidate utility functions

* refactor: simplify conditional checks in tool call and reasoning handlers

* feat: add default agent prompt for improved response handling

* refactor: rename directory with agent->tool, agentCall->agnet

* refactor: rename dispatchRunAgents to dispatchRunAgent for consistency

* refactor: rename toolCall to tools for consistency in FlowNodeTypeEnum

* refactor: rename agents to toolCall for consistency in nodeTypes mapping

* refactor: remove unused runtimeEdges parameter from dispatchRunAgent

* refactor: update runAgentCall and dispatchRunAgent to use structured requestProps and workflowProps

* refactor: streamline requestProps and handleToolResponse in runAgentCall and dispatchRunAgent

* refactor: restructure RunAgentCallProps and update requestProps to requestParams for clarity

* refactor: enhance interactiveEntryToolParams handling in runAgentCall for improved response management

* refactor: flatten RunAgentCallProps structure and update dispatchRunAgent to use direct properties

* fix: correct initialization of interactiveResponse in runAgentCall

* agent call code

* fix: agent call stop sign

* feat: add plan agent tools and default generated prompts

* feat: add model agent tools and related functions

* chore: rename enum value

* fix: optimize isEndSign assignment and update default plan prompt format

* fix: update transferPlanAgent to use histories instead of sharedContext and rename default prompt variable

* fix: update transferPlanAgent to use ChatItemType and adapt message structure

* feat: add ModelAgentTool and PlanAgentTool with detailed descriptions and parameters
fix: update error handling in transferModelAgent and transferPlanAgent to return error messages
refactor: simplify isEndSign assignment in runAgentCall

* feat: enhance agent call handling and response processing with context support

* feat: refactor agent prompts and add utility functions for system prompt parsing

* feat: add plan agent tools and default generated prompts

* feat: add model agent tools and related functions

* chore: rename enum value

* fix: optimize isEndSign assignment and update default plan prompt format

* fix: update transferPlanAgent to use histories instead of sharedContext and rename default prompt variable

* fix: update transferPlanAgent to use ChatItemType and adapt message structure

* feat: add ModelAgentTool and PlanAgentTool with detailed descriptions and parameters
fix: update error handling in transferModelAgent and transferPlanAgent to return error messages
refactor: simplify isEndSign assignment in runAgentCall

* feat: enhance agent call handling and response processing with context support

* feat: refactor agent prompts and add utility functions for system prompt parsing

* feat: add AskAgentTool to support the interactive questioning function

* Update request.ts

---------

Co-authored-by: archer <545436317@qq.com>
2025-10-09 15:17:33 +08:00
archer
13c6e54f85 fix: agent call stop sign 2025-10-09 15:17:33 +08:00
archer
876cfb8673 agent call code 2025-10-09 15:17:32 +08:00
francis
e6a010d0a7 refactor: agent call (#5572)
* feat: Add relevant functions related to agent invocation, including plan parsing, state management and tool invocation

* Refactor agent call logic and utilities

- Simplified the `runAgentCall` function by removing unnecessary complexity and restructuring the flow for better readability and maintainability.
- Introduced helper functions to create tools from tool nodes and to prepare agent messages, enhancing modularity.
- Removed the `utils.ts` file as its functions were integrated into the main logic, streamlining the codebase.
- Updated the dispatch logic in `index.ts` to utilize the new helper functions and improve clarity.
- Adjusted the handling of interactive modes and tool calls to ensure proper response formatting and error handling.

* refactor: clean up the processing logic of the interactive mode and remove the unused tool creation functions

* feat: add relevant constants for proxy configuration and update the proxy call logic

* refactor: remove unused configuration variables from workflow properties

* refactor: remove unused configuration variables from dispatchRunAgents props

* fix: build error

* refactor: update FlowNodeTypeEnum values and consolidate utility functions

* refactor: simplify conditional checks in tool call and reasoning handlers

* feat: add default agent prompt for improved response handling

* refactor: rename directory with agent->tool, agentCall->agnet

* refactor: rename dispatchRunAgents to dispatchRunAgent for consistency

* refactor: rename toolCall to tools for consistency in FlowNodeTypeEnum

* refactor: rename agents to toolCall for consistency in nodeTypes mapping

* refactor: remove unused runtimeEdges parameter from dispatchRunAgent

* refactor: update runAgentCall and dispatchRunAgent to use structured requestProps and workflowProps

* refactor: streamline requestProps and handleToolResponse in runAgentCall and dispatchRunAgent

* refactor: restructure RunAgentCallProps and update requestProps to requestParams for clarity

* refactor: enhance interactiveEntryToolParams handling in runAgentCall for improved response management

* refactor: flatten RunAgentCallProps structure and update dispatchRunAgent to use direct properties

* fix: correct initialization of interactiveResponse in runAgentCall
2025-10-09 15:10:45 +08:00
Archer
aba0b4c824 hide audit (#5740) 2025-10-09 15:10:19 +08:00
Archer
7942805af9 fix: usage repeat (#5735)
* fix: usage repeat

* remove invalid code
2025-10-09 09:53:19 +08:00
Finley Ge
b8c2c7ad98 fix: docker-compose pg_url removal; depends on pg -> vectorDB (#5733) 2025-10-06 11:42:57 +08:00
Archer
69559814e7 doc (#5730) 2025-09-30 16:00:10 +08:00
Archer
1d2fe012bf deploy doc (#5729) 2025-09-30 15:47:06 +08:00
Archer
a83ae8e6e8 4.13.1 features (#5728)
* fix(api): 修复二级路由下的页面判断逻辑

在请求错误处理中,添加基础URL前缀以正确判断当前是否为外部链接页面。

* perf: use global var

* remove invalid code

* feat: response limit;perf: copy avatar image;perf: markdown parse (#5719)

* feat: response limit

* remove placeholder

* perf: copy avatar image

* perf: markdown parse

* fix: child app cannot show cite

* doc

* fix: node template bugs (#5727)

* add dataset search count track (#5721)

* add dataset search count track

* remove pro

* change to track

* remove unused

* fix

* perf: track code

---------

Co-authored-by: archer <545436317@qq.com>

* http response limit

* deploy doc

* fix: test

* doc

* remove invalid code

* remove invalid code

---------

Co-authored-by: 戴盛利 <1639499287@qq.com>
Co-authored-by: heheer <heheer@sealos.io>
v4.13.1
2025-09-30 15:05:43 +08:00
Finley Ge
e4127b53af chore: deploy update cn registry (#5726)
* perf: rename docker-compose.yml after download

* chore: update cn registry for minio and redis
2025-09-29 17:57:15 +08:00
Finley Ge
bea5fc0b41 fix: static file /deploy/* (#5725) 2025-09-29 12:13:38 +08:00
Archer
d6fc27a892 Test doc (#5724)
* doc

* doc
2025-09-29 11:52:39 +08:00
Archer
5749f66197 update deploy doc (#5723) 2025-09-29 11:42:47 +08:00
Finley Ge
32a3b9216b perf: deploy docs; docker-compose (#5722)
* docs: https://localhost => http://localhost

* chore: docker compose; deploy/dev docs

* chore: quick-start page

* chore: add comment & remove leading space of vector config

* chore: remove redundant install.sh scripts

* chore: adjust milvus and ob, image dyanmic config; readme.md

* chore: update pnpm-lock.yaml
2025-09-29 11:34:11 +08:00
heheer
5a2ba5a340 fix: add missing MongoAppChatLog updates for interactive chat sessions (#5716)
* fix: add missing MongoAppChatLog updates for interactive chat sessions

* fix: interactive response not update log

* doc

---------

Co-authored-by: archer <545436317@qq.com>
2025-09-27 19:43:37 +08:00
heheer
ce3556c240 fix: react-hook-form Controller crash with special characters in field names (#5715) 2025-09-27 19:24:12 +08:00
heheer
a6ba974167 fix: simple prompt editor list render (#5717) 2025-09-27 19:18:10 +08:00
Archer
53907af9f7 fix: loop interactive (#5714)
* fix: loop interactive

* add buffer time
2025-09-26 16:01:20 +08:00
Archer
c66c2ad8f9 feat: auth login in getSchemaApi (#5713)
* feat: auth api

* doc
2025-09-26 13:32:15 +08:00
Archer
3b3180480f app doc (#5712)
* app doc

* app doc

---------

Co-authored-by: heheer <zhiyu44@qq.com>
2025-09-26 13:18:51 +08:00
Archer
93e260ebcf Update 4130.mdx (#5709) 2025-09-25 21:02:34 +08:00
Archer
1e8e24a5a7 Update 4130.mdx (#5705) 2025-09-25 15:36:06 +08:00
Archer
34e5191558 fix: collection ui (#5704) v4.13.0-fix 2025-09-25 15:12:53 +08:00
Finley Ge
7cdb16c816 perf: permission index & model table collaborator context lazy mount (#5703) 2025-09-25 14:11:05 +08:00
dependabot[bot]
d4c1e25598 chore(deps): bump tar-fs in /plugins/webcrawler/SPIDER (#5699)
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 3.0.9 to 3.1.1.
- [Commits](https://github.com/mafintosh/tar-fs/compare/v3.0.9...v3.1.1)

---
updated-dependencies:
- dependency-name: tar-fs
  dependency-version: 3.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-25 13:32:01 +08:00
Archer
70e0798489 update package (#5700) v4.13.0 2025-09-25 09:53:33 +08:00
Archer
88633a2a42 fix: child usage remove (#5698)
* fix: child usage remove

* remove runloop empty usage
2025-09-24 23:15:46 +08:00
Archer
051455238c V4.13.0 features (#5693)
* feat: concat usage code (#5657)

* feat: dataset parse queue (#5661)

* feat: chat usage concat (#5669)

* perf: search test usage

* feat: chat usage concat

* fix: ts

* fix: ts

* feat: chat node response store (#5675)

* feat: chat node response store

* limit export

* test

* add ai generate node (#5506)

* add node copilot

* apply code

* update dynamic input & output

* add code test

* usage

* dynamic input border render

* optimize input & output

* optimize code

* update style

* change card to popover

* prompt editor basic

* prompt editor

* handle key down

* update prompt

* merge

* fix

* fix

* fix

* perf: workflow performance (#5677)

* feat: chat node response store

* limit export

* perf: workflow performance

* remove log

* fix: app template get duplicate (#5682)

* fix: dynamic input lock & code param (#5680)

* fix: dynamic input lock & code param

* fix

* fix

* feat: multi node data sync & system tool hot-swapping (#5575)

* Enhance file upload functionality and system tool integration (#5257)

* Enhance file upload functionality and system tool integration

* Add supplementary documents and optimize the upload interface

* Refactor file plugin types and update upload configurations

* Refactor MinIO configuration variables and clean up API plugin handlers for improved readability and consistency

* File name change

* Refactor SystemTools component layout

* fix i18n

* fix

* fix

* fix

* optimize app logs sort (#5310)

* log keys config modal

* multiple select

* api

* fontsize

* code

* chatid

* fix build

* fix

* fix component

* change name

* log keys config

* fix

* delete unused

* fix

* chore: minio service class rewrite

* chore: s3 plugin upload

* feat: system global cache with multi node sync feature

* feat: cache

* chore: move images

* docs: update & remove useless code

* chore: resolve merge conflicts

* chore: adjust the code

* chore: adjust

* deps: upgrade @fastgpt-sdk/plugin to 0.1.17

* perf(s3): s3 config

* fix: cache syncKey refresh

* fix: update @fastgpt-sdk/plugin to v0.1.18 removing mongo definition for fixing vitest

* chore: adjust

---------

Co-authored-by: Ctrlz <143257420+ctrlz526@users.noreply.github.com>
Co-authored-by: heheer <heheer@sealos.io>
Co-authored-by: Archer <545436317@qq.com>

* perf: s3 api code

* fix: toolbox empty when second open modal

* feat: http tool set (#5599)

* feat: http toolSet manual create front end

* feat: http toolSet manual create i18n

* feat: http toolSet manual create back end

* feat: auth, as tool param, adapt mcp

* fix: delete unused httpPlugin

* fix: delete FlowNodeTypeEnum.httpPlugin

* fix: AppTypeEnum include httpToolSet and httpPlugin

* fix

* delete console

* fix

* output schema

* fix

* fix bg

* fix base url

* fix

---------

Co-authored-by: heheer <zhiyu44@qq.com>

* feat: app count

* perf: type check

* feat: catch error

* perf: plugin hot-swapping (#5688)

* perf: plugin hot-swapping

* chore: adjust code

* perf: cite data auth

* fix http toolset (#5689)

* temp

* fix http tool set

* fix

* template author hide

* dynamic IO ui

* fix: auth test

* fix dynamic input & output (#5690)

Co-authored-by: Archer <545436317@qq.com>

* fix: dynamic output id

* doc

* feat: model permission (#5666)

* feat(permission): model permission definition & api

* chore: support update model's collaborators

* feat: remove unauthedmodel when paste and import

* fix: type error

* fix: test setup global model list

* fix: http tool api

* chore: update fastgpt-sdk version

* chore: remove useless code

* chore: myModelList cache

* perf: user who is not manager can not configure model permission (FE)

* perf: model => Set

* feat: getMyModels moved to opensource code; cache the myModelList

* fix: type error

* fix dynamic input reference select type (#5694)

* remove unique index

* read file usage

* perf: connection error

* fix: abort token count

* fix: debug usage concat

* fix: immer clone object

* fix: immer clone object

* perf: throw error when error chat

* update audit i18n

* fix: 修复识别pptx文件后,返回内容顺序错乱问题 (#5696)

* fix: pptx sort error

* fix prompt editor (#5695)

* fix prompt editor

* fix

* fix: redis cache prefix (#5697)

* fix: redis cache prefix

* fix: cache

* fix: get model collaborator by model.model

* feat: hint for model per

* rename bucket name

* model ui

* doc

* doc

---------

Co-authored-by: heheer <heheer@sealos.io>
Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com>
Co-authored-by: Ctrlz <143257420+ctrlz526@users.noreply.github.com>
Co-authored-by: Zeng Qingwen <143274079+fishwww-ww@users.noreply.github.com>
Co-authored-by: heheer <zhiyu44@qq.com>
Co-authored-by: Deepturn <33342819+Deepturn@users.noreply.github.com>
2025-09-24 22:40:31 +08:00
Archer
9f8f8dd3de Update README.md (#5686) 2025-09-22 10:47:54 +08:00
Archer
984fbc8178 Update commercial.mdx (#5685) 2025-09-21 23:09:46 +08:00
John Chen
91269c91a1 fix: 修复最后一个流为[xxxx]格式时会重复输出1次 (#5673)
* fix: 修复最后一个流为[xxxx]格式时会重复输出1次

issue #5292
当最后一个流中包含[xxxx]格式时,会输出2次。第一次在parseCite方法中if (isStreamEnd) {分支内输出,第二次在调用getResponseData时会输出buffer中的内容,导致重复。

* add test case

---------

Co-authored-by: archer <545436317@qq.com>
2025-09-19 10:58:48 +08:00
heheer
206fd7e4a8 fix: question guide prompt save & sub route image (#5672)
* fix: question guide prompt save & sub route image

* fix markdown
2025-09-18 18:13:57 +08:00
Zeng Qingwen
3099b33343 fix: front end render wecom publish without update manually (#5670) 2025-09-18 14:35:08 +08:00
heheer
ab29710945 fix: node copy, debug variables, auto-execution (#5664)
* fix debug variables

* auto execute condition

* fix autoTTSResponse

* node copy

* memory debug nodes

* doc

* yuque doc

* fix: debug

* img

* i18n

---------

Co-authored-by: archer <545436317@qq.com>
2025-09-17 22:29:56 +08:00
YeYuheng
1581a08082 doc_mineru (#5662)
* doc_mineru

* Delete bun.lock

---------

Co-authored-by: xxYyh <xxyyh@xxYyhdeMacBook-Pro.local>
Co-authored-by: Archer <545436317@qq.com>
2025-09-17 18:33:31 +08:00