mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-05 01:02:59 +08:00
V4.14.9 dev (#6555)
* feat: encapsulate logger (#6535) * feat: encapsulate logger * update engines --------- Co-authored-by: archer <545436317@qq.com> * next config * dev shell * Agent sandbox (#6532) * docs: switch to docs layout and apply black theme (#6533) * feat: add Gemini 3.1 models - Add gemini-3.1-pro-preview (released February 19, 2026) - Add gemini-3.1-flash-lite-preview (released March 3, 2026) Both models support: - 1M context window - 64k max response - Vision - Tool choice * docs: switch to docs layout and apply black theme - Change layout from notebook to docs - Update logo to icon + text format - Apply fumadocs black theme - Simplify global.css (keep only navbar and TOC styles) - Fix icon components to properly accept className props - Add mobile text overflow handling - Update Node engine requirement to >=20.x * doc * doc * lock * fix: ts * doc * doc --------- Co-authored-by: archer <archer@archerdeMac-mini.local> Co-authored-by: archer <545436317@qq.com> * Doc (#6493) * cloud doc * doc refactor * doc move * seo * remove doc * yml * doc * fix: tsconfig * fix: tsconfig * sandbox version (#6497) * sandbox version * add sandbox log * update lock * fix * fix: sandbox * doc * add console * i18n * sandbxo in agent * feat: agent sandbox * lock * feat: sandbox ui * sandbox check exists * env tempalte * doc * lock * sandbox in chat window * sandbox entry * fix: test * rename var * sandbox config tip * update sandbox lifecircle * update prompt * rename provider test * sandbox logger * yml --------- Co-authored-by: Archer <archer@fastgpt.io> Co-authored-by: archer <archer@archerdeMac-mini.local> * perf: sandbox error tip * Add sandbox limit and fix some issue (#6550) * sandbox in plan * fix: some issue * fix: test * editor default path * fix: comment * perf: sandbox worksapce * doc * perf: del sandbox * sandbox build * fix: test * fix: pr comment --------- Co-authored-by: Ryo <whoeverimf5@gmail.com> Co-authored-by: Archer <archer@fastgpt.io> Co-authored-by: archer <archer@archerdeMac-mini.local>
This commit is contained in:
@@ -172,6 +172,7 @@ export enum NodeInputKeyEnum {
|
||||
selectedTools = 'agent_selectedTools',
|
||||
datasetParams = 'agent_datasetParams',
|
||||
skills = 'skills',
|
||||
useAgentSandbox = 'useAgentSandbox',
|
||||
|
||||
// dataset
|
||||
datasetSelectList = 'datasets',
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
import {
|
||||
SANDBOX_TOOL_NAME,
|
||||
SANDBOX_ICON,
|
||||
SANDBOX_NAME,
|
||||
SANDBOX_TOOL_DESCRIPTION
|
||||
} from '../../../ai/sandbox/constants';
|
||||
import type { I18nStringType } from '../../../../common/i18n/type';
|
||||
|
||||
export enum SubAppIds {
|
||||
@@ -5,13 +11,19 @@ export enum SubAppIds {
|
||||
ask = 'ask_agent',
|
||||
model = 'model_agent',
|
||||
fileRead = 'file_read',
|
||||
datasetSearch = 'dataset_search'
|
||||
datasetSearch = 'dataset_search',
|
||||
sandboxTool = 'sandbox_shell'
|
||||
}
|
||||
|
||||
export const systemSubInfo: Record<
|
||||
string,
|
||||
{ name: I18nStringType; avatar: string; toolDescription: string }
|
||||
> = {
|
||||
[SubAppIds.sandboxTool]: {
|
||||
name: SANDBOX_NAME,
|
||||
avatar: SANDBOX_ICON,
|
||||
toolDescription: SANDBOX_TOOL_DESCRIPTION
|
||||
},
|
||||
[SubAppIds.plan]: {
|
||||
name: {
|
||||
'zh-CN': '规划Agent',
|
||||
|
||||
@@ -394,9 +394,14 @@ export type DispatchNodeResponseType = {
|
||||
// Children node responses
|
||||
childrenResponses?: ChatHistoryItemResType[];
|
||||
|
||||
// abandon
|
||||
// Tools
|
||||
toolId?: string;
|
||||
|
||||
/** @deprecated */
|
||||
extensionModel?: string;
|
||||
/** @deprecated */
|
||||
extensionResult?: string;
|
||||
/** @deprecated */
|
||||
extensionTokens?: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -100,6 +100,14 @@ export const ToolCallNode: FlowNodeTemplateType = {
|
||||
valueType: WorkflowIOValueTypeEnum.string
|
||||
},
|
||||
|
||||
{
|
||||
key: NodeInputKeyEnum.useAgentSandbox,
|
||||
renderTypeList: [FlowNodeInputTypeEnum.switch],
|
||||
label: i18nT('app:use_agent_sandbox'),
|
||||
description: i18nT('app:use_computer_desc'),
|
||||
valueType: WorkflowIOValueTypeEnum.boolean,
|
||||
value: false
|
||||
},
|
||||
{
|
||||
...Input_Template_System_Prompt,
|
||||
label: i18nT('common:core.ai.Prompt'),
|
||||
|
||||
Reference in New Issue
Block a user