Skip to content

Commit

Permalink
chore: magent-ui 0.1.16.dev7
Browse files Browse the repository at this point in the history
  • Loading branch information
BroKun committed Sep 9, 2024
1 parent 38b1408 commit 93c59ab
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -322,3 +322,6 @@ pnpm-lock.yaml

docker/volumes
agent_universe.db


packages/magent-ui/src/magent_ui/static
1 change: 0 additions & 1 deletion packages/magent-ui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ wheels/
# venv
.venv

static
2 changes: 1 addition & 1 deletion packages/magent-ui/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "magent-ui"
version = "0.1.16.dev6"
version = "0.1.16.dev7"
description = ""
authors = [
{ name = "shiyu", email = "[email protected]" },
Expand Down
20 changes: 10 additions & 10 deletions web-apps/ui/src/views/agent-flow/flow-with-tabs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { NodeDataType } from '@difizen/magent-flow';
import type { NodeDataType, NodeTypes } from '@difizen/magent-flow';
import {
NodeTypeEnum,
StartNode,
EndNode,
KnowledgeNode,
Expand All @@ -11,6 +10,7 @@ import {
} from '@difizen/magent-flow';
import { Tabs } from 'antd';
import yaml from 'js-yaml';
import type { FC } from 'react';

import { CharacterSetting } from '@/views/agent-config/components/character-setting/index.js';

Expand Down Expand Up @@ -206,15 +206,15 @@ export const NodeSchemaParser = (obj: Record<string, any>) => {
delete obj['data'];
};

const nodeTypes = {
[NodeTypeEnum.Start]: StartNode,
[NodeTypeEnum.End]: EndNode,
[NodeTypeEnum.LLM]: LLMNode,
[NodeTypeEnum.Knowledge]: KnowledgeNode,
[NodeTypeEnum.IfElse]: IfElseNode,
[NodeTypeEnum.Agent]: AgentNode,
const nodeTypes: Record<NodeTypes, FC<any>> = {
['start']: StartNode,
['end']: EndNode,
['llm']: LLMNode,
['knowledge']: KnowledgeNode,
['ifelse']: IfElseNode,
['agent']: AgentNode,
// 工具节点
[NodeTypeEnum.Tool]: ToolNode,
['tool']: ToolNode,
};

export const FlowWithTabs = (props: { toolbar?: React.ReactNode }) => {
Expand Down
1 change: 1 addition & 0 deletions web-packages/magent-flow/src/interfaces/flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export type NodeTypes =
| 'agent'
| 'tool'
| 'ifelse';

// export enum NodeTypeEnum {
// 'Start' = 'start',
// 'End' = 'end',
Expand Down

0 comments on commit 93c59ab

Please sign in to comment.