-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #446 from kreneskyp/graph_ui
UI for LangGraph state machines
- Loading branch information
Showing
8 changed files
with
90 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from "react"; | ||
import { BranchConnectors, InputConnector } from "chains/flow/BranchNode"; | ||
import { VStack, Flex } from "@chakra-ui/react"; | ||
import { OutputConnector } from "chains/flow/ChainNode"; | ||
|
||
export const GraphNode = ({ type, node, config, onFieldChange }) => { | ||
return ( | ||
<VStack spacing={0} alignItems="stretch" fontSize="xs"> | ||
<Flex mt={1} mb={3} justify={"space-between"}> | ||
<InputConnector type={type} node={node} /> | ||
<OutputConnector type={type} node={node} /> | ||
</Flex> | ||
<Flex mt={1} mb={3} justify={"space-between"}> | ||
<InputConnector | ||
type={type} | ||
node={node} | ||
id={"loop"} | ||
label={"Loop"} | ||
required={false} | ||
/> | ||
<BranchConnectors node={node} /> | ||
</Flex> | ||
</VStack> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.