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,26 @@
# Copyright (c) 2023 - 2025, AG2ai, Inc., AG2ai open-source projects maintainers and core contributors
#
# SPDX-License-Identifier: Apache-2.0
__all__ = ["ReplyResult"]
from typing import Optional
from pydantic import BaseModel
from .context_variables import ContextVariables
from .targets.transition_target import TransitionTarget
class ReplyResult(BaseModel):
"""Result of a tool call that is used to provide the return message and the target to transition to."""
message: str
target: Optional[TransitionTarget] = None
context_variables: Optional[ContextVariables] = None
def __str__(self) -> str:
"""The string representation for ReplyResult will be just the message."""
return self.message