Skip to content

Workflows

fastagency.base.Workflows #

Bases: Protocol

names property #

names: list[str]

get_description #

get_description(name: str) -> str
Source code in fastagency/base.py
def get_description(self, name: str) -> str: ...

register #

register(
    name: str, description: str
) -> Callable[[Workflow], Workflow]
Source code in fastagency/base.py
def register(
    self, name: str, description: str
) -> Callable[[Workflow], Workflow]: ...

register_api #

register_api(
    api: OpenAPI,
    callers: Union[Agent, Iterable[Agent]],
    executors: Union[Agent, Iterable[Agent]],
    functions: Optional[
        Union[
            str,
            Iterable[
                Union[str, Mapping[str, Mapping[str, str]]]
            ],
        ]
    ] = None,
) -> None
Source code in fastagency/base.py
def register_api(
    self,
    api: "OpenAPI",
    callers: Union[Agent, Iterable[Agent]],
    executors: Union[Agent, Iterable[Agent]],
    functions: Optional[
        Union[str, Iterable[Union[str, Mapping[str, Mapping[str, str]]]]]
    ] = None,
) -> None: ...

run #

run(
    name: str, session_id: str, ui: UI, initial_message: str
) -> str
Source code in fastagency/base.py
def run(self, name: str, session_id: str, ui: UI, initial_message: str) -> str: ...