Workflow
fastagency.runtimes.ag2.Workflow #
Bases: WorkflowsProtocol
Initialize the workflows.
Source code in fastagency/runtimes/ag2/ag2.py
get_description #
register #
register(
name: str,
description: str,
*,
fail_on_redefintion: bool = False
) -> Callable[[WorkflowTypeVar], WorkflowTypeVar]
Source code in fastagency/runtimes/ag2/ag2.py
register_api #
register_api(
api: OpenAPI,
callers: Union[
ConversableAgent, Iterable[ConversableAgent]
],
executors: Union[
ConversableAgent, Iterable[ConversableAgent]
],
functions: Optional[
Union[
str,
Iterable[
Union[str, Mapping[str, Mapping[str, str]]]
],
]
] = None,
) -> None