aiq.front_ends.fastapi.fastapi_front_end_config#
Attributes#
Classes#
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 allowself
as a field name.- class EndpointBase(/, **data: Any)#
Bases:
pydantic.BaseModel
- method: Literal['GET', 'POST', 'PUT', 'DELETE']#
- step_adaptor: aiq.data_models.step_adaptor.StepAdaptorConfig#
- workflow: Annotated[FastApiFrontEndConfig.EndpointBase, Field(description='Endpoint for the default workflow.')]#
- endpoints: list[FastApiFrontEndConfig.Endpoint] = None#