aiq.front_ends.fastapi.fastapi_front_end_config#

Attributes#

Classes#

FastApiFrontEndConfig

A FastAPI based front end that allows an AgentIQ workflow to be served as a microservice.

Module Contents#

logger#
class FastApiFrontEndConfig(/, **data: Any)#

Bases: aiq.data_models.front_end.FrontEndBaseConfig

A FastAPI based front end that allows an AgentIQ workflow to be served as a microservice.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class EndpointBase(/, **data: Any)#

Bases: pydantic.BaseModel

method: Literal['GET', 'POST', 'PUT', 'DELETE']#
description: str#
path: str | None = None#
websocket_path: str | None = None#
openai_api_path: str | None = None#
class Endpoint(/, **data: Any)#

Bases: EndpointBase

function_name: str = None#
root_path: str = None#
host: str = None#
port: int = None#
reload: bool = None#
workers: int = None#
step_adaptor: aiq.data_models.step_adaptor.StepAdaptorConfig#
workflow: Annotated[FastApiFrontEndConfig.EndpointBase, Field(description='Endpoint for the default workflow.')]#
endpoints: list[FastApiFrontEndConfig.Endpoint] = None#
use_gunicorn: bool = None#
runner_class: str | None = None#