Evaluation Resource#

class nemo_microservices.resources.evaluation.EvaluationResource(client: NeMoMicroservices)#

Bases: SyncAPIResource

property configs: ConfigsResource#
property jobs: JobsResource#
property results: ResultsResource#
property targets: TargetsResource#
property with_raw_response: EvaluationResourceWithRawResponse#

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: EvaluationResourceWithStreamingResponse#

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

live(
*,
config: evaluation_live_params.Config,
target: evaluation_live_params.Target,
custom_fields: Dict[str, str] | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
namespace: str | NotGiven = NOT_GIVEN,
output_files_url: str | NotGiven = NOT_GIVEN,
ownership: Ownership | NotGiven = NOT_GIVEN,
project: str | NotGiven = NOT_GIVEN,
result: str | NotGiven = NOT_GIVEN,
status: JobStatus | NotGiven = NOT_GIVEN,
status_details: EvaluationStatusDetailsParam | NotGiven = NOT_GIVEN,
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) LiveEvaluation#

Start a live evaluation.

Similar to starting an evaluation job, but waits and returns the results. Not evaluation job is persisted.

Parameters:
  • config – The evaluation configuration.

  • target – The evaluation target.

  • custom_fields – A set of custom fields that the user can define and use for various purposes.

  • description – The description of the entity.

  • namespace – The namespace of the entity. This can be missing for namespace entities or in deployments that don’t use namespaces.

  • output_files_url – The place where the output files, if any, should be written.

  • ownership

    Information about ownership of an entity.

    If the entity is a namespace, the access_policies will typically apply to all entities inside the namespace.

  • project – The URN of the project associated with this entity.

  • result – The evaluation result URN.

  • status

    Normalized statuses for all jobs.

    • CREATED: The job is created, but not yet scheduled.

    • PENDING: The job is waiting for resource allocation.

    • RUNNING: The job is currently running.

    • CANCELLING: The job is being cancelled at the user’s request.

    • CANCELLED: The job has been cancelled by the user.

    • CANCELLING: The job is being cancelled at the user’s request.

    • FAILED: The job failed to execute and terminated.

    • COMPLETED: The job has completed successfully.

    • READY: The job is ready to be used.

    • UNKNOWN: The job status is unknown.

  • status_details – Details about the status of the evaluation.

  • 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

create_from_dict(data: dict[str, object]) object#
class nemo_microservices.resources.evaluation.AsyncEvaluationResource(client: AsyncNeMoMicroservices)#

Bases: AsyncAPIResource

property configs: AsyncConfigsResource#
property jobs: AsyncJobsResource#
property results: AsyncResultsResource#
property targets: AsyncTargetsResource#
property with_raw_response: AsyncEvaluationResourceWithRawResponse#

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: AsyncEvaluationResourceWithStreamingResponse#

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

async live(
*,
config: evaluation_live_params.Config,
target: evaluation_live_params.Target,
custom_fields: Dict[str, str] | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
namespace: str | NotGiven = NOT_GIVEN,
output_files_url: str | NotGiven = NOT_GIVEN,
ownership: Ownership | NotGiven = NOT_GIVEN,
project: str | NotGiven = NOT_GIVEN,
result: str | NotGiven = NOT_GIVEN,
status: JobStatus | NotGiven = NOT_GIVEN,
status_details: EvaluationStatusDetailsParam | NotGiven = NOT_GIVEN,
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) LiveEvaluation#

Start a live evaluation.

Similar to starting an evaluation job, but waits and returns the results. Not evaluation job is persisted.

Parameters:
  • config – The evaluation configuration.

  • target – The evaluation target.

  • custom_fields – A set of custom fields that the user can define and use for various purposes.

  • description – The description of the entity.

  • namespace – The namespace of the entity. This can be missing for namespace entities or in deployments that don’t use namespaces.

  • output_files_url – The place where the output files, if any, should be written.

  • ownership

    Information about ownership of an entity.

    If the entity is a namespace, the access_policies will typically apply to all entities inside the namespace.

  • project – The URN of the project associated with this entity.

  • result – The evaluation result URN.

  • status

    Normalized statuses for all jobs.

    • CREATED: The job is created, but not yet scheduled.

    • PENDING: The job is waiting for resource allocation.

    • RUNNING: The job is currently running.

    • CANCELLING: The job is being cancelled at the user’s request.

    • CANCELLED: The job has been cancelled by the user.

    • CANCELLING: The job is being cancelled at the user’s request.

    • FAILED: The job failed to execute and terminated.

    • COMPLETED: The job has completed successfully.

    • READY: The job is ready to be used.

    • UNKNOWN: The job status is unknown.

  • status_details – Details about the status of the evaluation.

  • 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

create_from_dict(
data: dict[str, object],
) object#