nemo_microservices.resources.classify#

Module Contents#

Classes#

API#

class nemo_microservices.resources.classify.AsyncClassifyResource(
client: nemo_microservices._client.AsyncNeMoMicroservices,
)#

Bases: nemo_microservices._resource.AsyncAPIResource

Initialization

async create(
*,
input: str,
model: str,
extra_headers: nemo_microservices._types.Headers | None = None,
extra_query: nemo_microservices._types.Query | None = None,
extra_body: nemo_microservices._types.Body | None = None,
timeout: float | httpx.Timeout | None | nemo_microservices._types.NotGiven = not_given,
) nemo_microservices.types.classify_create_response.ClassifyCreateResponse#

Classify the provided input.

Args: input: Input text to classify.

model: The model to use. Must be one of the available models.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds

property with_raw_response: nemo_microservices.resources.classify.AsyncClassifyResourceWithRawResponse#

This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.

For more information, see https://docs.nvidia.com/nemo/microservices/latest/pysdk/index.html#accessing-raw-response-data-e-g-headers

property with_streaming_response: nemo_microservices.resources.classify.AsyncClassifyResourceWithStreamingResponse#

An alternative to .with_raw_response that doesn’t eagerly read the response body.

For more information, see https://docs.nvidia.com/nemo/microservices/latest/pysdk/index.html#with_streaming_response

class nemo_microservices.resources.classify.AsyncClassifyResourceWithRawResponse(
classify: nemo_microservices.resources.classify.AsyncClassifyResource,
)#

Initialization

class nemo_microservices.resources.classify.AsyncClassifyResourceWithStreamingResponse(
classify: nemo_microservices.resources.classify.AsyncClassifyResource,
)#

Initialization

class nemo_microservices.resources.classify.ClassifyResource(client: nemo_microservices._client.NeMoMicroservices)#

Bases: nemo_microservices._resource.SyncAPIResource

Initialization

create(
*,
input: str,
model: str,
extra_headers: nemo_microservices._types.Headers | None = None,
extra_query: nemo_microservices._types.Query | None = None,
extra_body: nemo_microservices._types.Body | None = None,
timeout: float | httpx.Timeout | None | nemo_microservices._types.NotGiven = not_given,
) nemo_microservices.types.classify_create_response.ClassifyCreateResponse#

Classify the provided input.

Args: input: Input text to classify.

model: The model to use. Must be one of the available models.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds

property with_raw_response: nemo_microservices.resources.classify.ClassifyResourceWithRawResponse#

This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.

For more information, see https://docs.nvidia.com/nemo/microservices/latest/pysdk/index.html#accessing-raw-response-data-e-g-headers

property with_streaming_response: nemo_microservices.resources.classify.ClassifyResourceWithStreamingResponse#

An alternative to .with_raw_response that doesn’t eagerly read the response body.

For more information, see https://docs.nvidia.com/nemo/microservices/latest/pysdk/index.html#with_streaming_response

class nemo_microservices.resources.classify.ClassifyResourceWithRawResponse(
classify: nemo_microservices.resources.classify.ClassifyResource,
)#

Initialization

class nemo_microservices.resources.classify.ClassifyResourceWithStreamingResponse(
classify: nemo_microservices.resources.classify.ClassifyResource,
)#

Initialization