Skip to content

WorkflowsProtocol

fastagency.WorkflowsProtocol #

Bases: ProviderProtocol, 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,
    ui: UI,
    user_id: Optional[str] = None,
    **kwargs: Any
) -> str
Source code in fastagency/base.py
def run(
    self,
    name: str,
    ui: UI,
    user_id: Optional[str] = None,
    **kwargs: Any,
) -> str: ...