CoACT initialize (#292)

This commit is contained in:
Linxin Song
2025-07-30 19:35:20 -07:00
committed by GitHub
parent 862d704b8c
commit b968155757
228 changed files with 42386 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
# Copyright (c) 2023 - 2025, AG2ai, Inc., AG2ai open-source projects maintainers and core contributors
#
# SPDX-License-Identifier: Apache-2.0
from typing import TYPE_CHECKING, Protocol
from ...doc_utils import export_module
if TYPE_CHECKING:
from ..run_response import AsyncRunResponseProtocol, RunResponseProtocol
__all__ = ["AsyncEventProcessorProtocol", "EventProcessorProtocol"]
@export_module("autogen.io")
class EventProcessorProtocol(Protocol):
def process(self, response: "RunResponseProtocol") -> None: ...
@export_module("autogen.io")
class AsyncEventProcessorProtocol(Protocol):
async def process(self, response: "AsyncRunResponseProtocol") -> None: ...