mirror of
https://github.com/langgenius/dify.git
synced 2026-05-10 05:56:31 +08:00
move the collections folder structure
This commit is contained in:
parent
6fd27519e9
commit
2ea227f3c0
@ -14,12 +14,12 @@ from agenton.layers.types import (
|
||||
PydanticAIPrompt,
|
||||
PydanticAITool,
|
||||
)
|
||||
from agenton_collections.pydantic_ai import (
|
||||
from agenton_collections.layers.pydantic_ai import (
|
||||
PydanticAIBridgeLayer,
|
||||
PydanticAIBridgeLayerDeps,
|
||||
PydanticAIPrompts,
|
||||
)
|
||||
from agenton_collections.plain import (
|
||||
from agenton_collections.layers.plain import (
|
||||
DynamicToolsLayer,
|
||||
DynamicToolsLayerDeps,
|
||||
ObjectLayer,
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
"""Reusable collection layers for the plain layer family."""
|
||||
|
||||
from agenton_collections.plain.basic import ObjectLayer, PromptLayer, ToolsLayer
|
||||
from agenton_collections.plain.dynamic_tools import (
|
||||
from agenton_collections.layers.plain.basic import ObjectLayer, PromptLayer, ToolsLayer
|
||||
from agenton_collections.layers.plain.dynamic_tools import (
|
||||
DynamicToolsLayer,
|
||||
DynamicToolsLayerDeps,
|
||||
with_object,
|
||||
@ -23,7 +23,7 @@ from typing import (
|
||||
|
||||
from agenton.layers.base import LayerDeps
|
||||
from agenton.layers.types import PlainLayer
|
||||
from agenton_collections.plain.basic import ObjectLayer
|
||||
from agenton_collections.layers.plain.basic import ObjectLayer
|
||||
|
||||
type _ObjectToolCallable[ObjectT] = Callable[Concatenate[ObjectT, ...], Any]
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
"""Reusable collection layers for the pydantic-ai layer family."""
|
||||
|
||||
from agenton_collections.pydantic_ai.bridge import (
|
||||
from agenton_collections.layers.pydantic_ai.bridge import (
|
||||
PydanticAIBridgeLayer,
|
||||
PydanticAIBridgeLayerDeps,
|
||||
PydanticAIPrompts,
|
||||
@ -13,7 +13,7 @@ from typing_extensions import override
|
||||
|
||||
from agenton.layers.base import LayerDeps
|
||||
from agenton.layers.types import PydanticAILayer, PydanticAIPrompt, PydanticAITool
|
||||
from agenton_collections.plain.basic import ObjectLayer
|
||||
from agenton_collections.layers.plain.basic import ObjectLayer
|
||||
|
||||
type PydanticAIPrompts[ObjectT] = PydanticAIPrompt[ObjectT] | Sequence[PydanticAIPrompt[ObjectT]]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user