move the collections folder structure

This commit is contained in:
盐粒 Yanli 2026-04-29 20:01:03 +08:00
parent 6fd27519e9
commit 2ea227f3c0
6 changed files with 7 additions and 7 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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]

View File

@ -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,

View File

@ -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]]