aiq.front_ends.fastapi.fastapi_front_end_config#
Attributes#
Classes#
Request model for the evaluate endpoint. |
|
Response model for the evaluate endpoint. |
|
Response model for the evaluate status endpoint. |
|
A FastAPI based front end that allows an AIQ Toolkit workflow to be served as a microservice. |
Module Contents#
- logger#
- class AIQEvaluateRequest(/, **data: Any)#
Bases:
pydantic.BaseModel
Request model for the evaluate endpoint.
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 AIQEvaluateResponse(/, **data: Any)#
Bases:
pydantic.BaseModel
Response model for the evaluate endpoint.
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 AIQEvaluateStatusResponse(/, **data: Any)#
Bases:
pydantic.BaseModel
Response model for the evaluate status endpoint.
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.- created_at: datetime.datetime = None#
- updated_at: datetime.datetime = None#
- expires_at: datetime.datetime | None = None#
- class FastApiFrontEndConfig(/, **data: Any)#
Bases:
aiq.data_models.front_end.FrontEndBaseConfig
A FastAPI based front end that allows an AIQ Toolkit 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']#
- class CrossOriginResourceSharing(/, **data: Any)#
Bases:
pydantic.BaseModel
- step_adaptor: aiq.data_models.step_adaptor.StepAdaptorConfig#
- workflow: Annotated[FastApiFrontEndConfig.EndpointBase, Field(description='Endpoint for the default workflow.')]#
- evaluate: Annotated[FastApiFrontEndConfig.EndpointBase, Field(description='Endpoint for evaluating workflows.')]#
- endpoints: list[FastApiFrontEndConfig.Endpoint] = None#
- cors: FastApiFrontEndConfig.CrossOriginResourceSharing = None#