Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/strands/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
Mapping,
Optional,
Type,
TypeAlias,
TypeVar,
Union,
cast,
Expand Down Expand Up @@ -51,6 +50,7 @@
from ..tools.executors._executor import ToolExecutor
from ..tools.registry import ToolRegistry
from ..tools.watcher import ToolWatcher
from ..types.agent import AgentInput
from ..types.content import ContentBlock, Message, Messages
from ..types.exceptions import ContextWindowOverflowException
from ..types.tools import ToolResult, ToolUse
Expand All @@ -67,8 +67,6 @@
# TypeVar for generic structured output
T = TypeVar("T", bound=BaseModel)

AgentInput: TypeAlias = str | list[ContentBlock] | Messages | None


# Sentinel class and object to distinguish between explicit None and default parameter value
class _DefaultCallbackHandlerSentinel:
Expand Down
10 changes: 10 additions & 0 deletions src/strands/types/agent.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""Agent-related type definitions for the SDK.
This module defines the types used for an Agent.
"""

from typing import TypeAlias

from .content import ContentBlock, Messages

AgentInput: TypeAlias = str | list[ContentBlock] | Messages | None
Loading