Skip to content

text_evolve

FastAPI endpoint functions for invoking the TextEvolve suite of services.

Attributes

RESOURCE_TEXT_EVOLVE module-attribute

RESOURCE_TEXT_EVOLVE = 'TextEvolve'

text_evolve_router module-attribute

text_evolve_router = APIRouter(
    prefix=format_path(RESOURCE_TEXT_EVOLVE),
    tags=[RESOURCE_TEXT_EVOLVE],
    responses=DEFAULT_HTTP_ERROR_RESPONSES,
)

Classes

Functions

evaluate async

evaluate(
    fastapi_request: Request,
    request: EvaluateRequestV1,
    job_pool: ThreadPoolExecutor = Depends(
        job_pool_dependency
    ),
)

Scores the quality of generated responses