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 22
22
Mapping ,
23
23
Optional ,
24
24
Type ,
25
- TypeAlias ,
26
25
TypeVar ,
27
26
Union ,
28
27
cast ,
51
50
from ..tools .executors ._executor import ToolExecutor
52
51
from ..tools .registry import ToolRegistry
53
52
from ..tools .watcher import ToolWatcher
53
+ from ..types .agent import AgentInput
54
54
from ..types .content import ContentBlock , Message , Messages
55
55
from ..types .exceptions import ContextWindowOverflowException
56
56
from ..types .tools import ToolResult , ToolUse
67
67
# TypeVar for generic structured output
68
68
T = TypeVar ("T" , bound = BaseModel )
69
69
70
- AgentInput : TypeAlias = str | list [ContentBlock ] | Messages | None
71
-
72
70
73
71
# Sentinel class and object to distinguish between explicit None and default parameter value
74
72
class _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