|
| 1 | +import warnings |
1 | 2 | from dataclasses import dataclass |
2 | 3 | from typing import Any, Dict, List, Literal, Optional |
3 | 4 |
|
@@ -333,3 +334,27 @@ class AIAgentConfigRequest: |
333 | 334 | # Type alias for multiple agents |
334 | 335 | AIAgents = Dict[str, AIAgentConfig] |
335 | 336 |
|
| 337 | + |
| 338 | +# ============================================================================ |
| 339 | +# Deprecated Type Aliases for Backward Compatibility |
| 340 | +# ============================================================================ |
| 341 | + |
| 342 | +# Note: These are type aliases that point to the new types. |
| 343 | +# Since Python uses duck typing, these will work at runtime even if type checkers complain. |
| 344 | +# The old AIConfig had optional enabled, so it maps to AICompletionConfigDefault |
| 345 | +# The old AIConfig return type had required enabled, so it maps to AICompletionConfig |
| 346 | + |
| 347 | +# Deprecated: Use AICompletionConfigDefault instead |
| 348 | +# This was the old AIConfig with optional enabled (used as input/default) |
| 349 | +# Note: We map to AICompletionConfigDefault since the old AIConfig had optional enabled |
| 350 | +AIConfig = AICompletionConfigDefault |
| 351 | + |
| 352 | +# Deprecated: Use AIAgentConfigDefault instead |
| 353 | +LDAIAgentDefaults = AIAgentConfigDefault |
| 354 | + |
| 355 | +# Deprecated: Use AIAgentConfigRequest instead |
| 356 | +LDAIAgentConfig = AIAgentConfigRequest |
| 357 | + |
| 358 | +# Deprecated: Use AIAgentConfig instead (note: this was the old return type) |
| 359 | +LDAIAgent = AIAgentConfig |
| 360 | + |
0 commit comments