File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 2222 Mapping ,
2323 Optional ,
2424 Type ,
25- TypeAlias ,
2625 TypeVar ,
2726 Union ,
2827 cast ,
5150from ..tools .executors ._executor import ToolExecutor
5251from ..tools .registry import ToolRegistry
5352from ..tools .watcher import ToolWatcher
53+ from ..types .agent import AgentInput
5454from ..types .content import ContentBlock , Message , Messages
5555from ..types .exceptions import ContextWindowOverflowException
5656from ..types .tools import ToolResult , ToolUse
6767# TypeVar for generic structured output
6868T = TypeVar ("T" , bound = BaseModel )
6969
70- AgentInput : TypeAlias = str | list [ContentBlock ] | Messages | None
71-
7270
7371# Sentinel class and object to distinguish between explicit None and default parameter value
7472class _DefaultCallbackHandlerSentinel :
Original file line number Diff line number Diff line change 1+ """Agent-related type definitions for the SDK.
2+
3+ This module defines the types used for an Agent.
4+ """
5+
6+ from typing import TypeAlias
7+
8+ from .content import ContentBlock , Messages
9+
10+ AgentInput : TypeAlias = str | list [ContentBlock ] | Messages | None
You can’t perform that action at this time.
0 commit comments