mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
refactor(api): rename dify_graph to graphon (#34095)
This commit is contained in:
@ -7,10 +7,10 @@ from pydantic import BaseModel
|
||||
from core.helper import encrypter
|
||||
from core.workflow.system_variables import build_bootstrap_variables, build_system_variables
|
||||
from core.workflow.variable_pool_initializer import add_variables_to_pool
|
||||
from dify_graph.file import File, FileTransferMethod, FileType
|
||||
from dify_graph.runtime import VariablePool
|
||||
from dify_graph.variables.segment_group import SegmentGroup
|
||||
from dify_graph.variables.segments import (
|
||||
from graphon.file import File, FileTransferMethod, FileType
|
||||
from graphon.runtime import VariablePool
|
||||
from graphon.variables.segment_group import SegmentGroup
|
||||
from graphon.variables.segments import (
|
||||
ArrayAnySegment,
|
||||
ArrayFileSegment,
|
||||
ArrayNumberSegment,
|
||||
@ -26,13 +26,13 @@ from dify_graph.variables.segments import (
|
||||
StringSegment,
|
||||
get_segment_discriminator,
|
||||
)
|
||||
from dify_graph.variables.types import SegmentType
|
||||
from dify_graph.variables.utils import (
|
||||
from graphon.variables.types import SegmentType
|
||||
from graphon.variables.utils import (
|
||||
dumps_with_segments,
|
||||
segment_orjson_default,
|
||||
to_selector,
|
||||
)
|
||||
from dify_graph.variables.variables import (
|
||||
from graphon.variables.variables import (
|
||||
ArrayAnyVariable,
|
||||
ArrayFileVariable,
|
||||
ArrayNumberVariable,
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import pytest
|
||||
|
||||
from dify_graph.variables.segment_group import SegmentGroup
|
||||
from dify_graph.variables.segments import StringSegment
|
||||
from dify_graph.variables.types import ArrayValidation, SegmentType
|
||||
from graphon.variables.segment_group import SegmentGroup
|
||||
from graphon.variables.segments import StringSegment
|
||||
from graphon.variables.types import ArrayValidation, SegmentType
|
||||
|
||||
|
||||
class TestSegmentTypeIsArrayType:
|
||||
|
||||
@ -10,10 +10,10 @@ from typing import Any
|
||||
|
||||
import pytest
|
||||
|
||||
from dify_graph.file.enums import FileTransferMethod, FileType
|
||||
from dify_graph.file.models import File
|
||||
from dify_graph.variables.segment_group import SegmentGroup
|
||||
from dify_graph.variables.segments import (
|
||||
from graphon.file.enums import FileTransferMethod, FileType
|
||||
from graphon.file.models import File
|
||||
from graphon.variables.segment_group import SegmentGroup
|
||||
from graphon.variables.segments import (
|
||||
ArrayFileSegment,
|
||||
BooleanSegment,
|
||||
FileSegment,
|
||||
@ -22,7 +22,7 @@ from dify_graph.variables.segments import (
|
||||
ObjectSegment,
|
||||
StringSegment,
|
||||
)
|
||||
from dify_graph.variables.types import ArrayValidation, SegmentType
|
||||
from graphon.variables.types import ArrayValidation, SegmentType
|
||||
|
||||
|
||||
def create_test_file(
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import pytest
|
||||
from pydantic import ValidationError
|
||||
|
||||
from dify_graph.variables import (
|
||||
from graphon.variables import (
|
||||
ArrayFileVariable,
|
||||
ArrayVariable,
|
||||
FloatVariable,
|
||||
@ -11,7 +11,7 @@ from dify_graph.variables import (
|
||||
SegmentType,
|
||||
StringVariable,
|
||||
)
|
||||
from dify_graph.variables.variables import VariableBase
|
||||
from graphon.variables.variables import VariableBase
|
||||
|
||||
|
||||
def test_frozen_variables():
|
||||
|
||||
Reference in New Issue
Block a user