Python: added AIAnnotation types and extra tests (#374)

* added AIAnnotation types and extra tests

* fixed typing and such

* use copy

* fix raw representation for add

* handle annotations in add

* clarified concat

* self to first
This commit is contained in:
Eduard van Valkenburg
2025-08-08 22:27:31 +02:00
committed by GitHub
Unverified
parent 8f27e63df6
commit 82d39bc1f7
8 changed files with 934 additions and 346 deletions
@@ -19,7 +19,7 @@ from ._events import (
from ._typing_utils import is_instance_of
from ._workflow_context import WorkflowContext
# region: Executor
# region Executor
class Executor:
@@ -96,7 +96,7 @@ class Executor:
# endregion: Executor
# region: Handler Decorator
# region Handler Decorator
ExecutorT = TypeVar("ExecutorT", bound="Executor")
@@ -183,7 +183,7 @@ def handler(
# endregion: Handler Decorator
# region: Agent Executor
# region Agent Executor
@dataclass
@@ -268,7 +268,7 @@ class AgentExecutor(Executor):
# endregion: Agent Executor
# region: Request Info Executor
# region Request Info Executor
@dataclass