PredictionOperations Class

PredictionOperations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Inheritance
builtins.object
PredictionOperations

Constructor

PredictionOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Methods

get_slot_prediction

Gets the predictions for an application slot.

get_version_prediction

Gets the predictions for an application version.

get_slot_prediction

Gets the predictions for an application slot.

get_slot_prediction(app_id, slot_name, prediction_request, verbose=None, show_all_intents=None, log=None, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

slot_name
str
Required

The application slot name.

prediction_request
PredictionRequest
Required

The prediction request parameters.

verbose
bool
default value: None

Indicates whether to get extra metadata for the entities predictions or not.

show_all_intents
bool
default value: None

Indicates whether to return all the intents in the response or just the top intent.

log
bool
default value: None

Indicates whether to log the endpoint query or not.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

PredictionResponse or ClientRawResponse if raw=true

Return type

Exceptions

get_version_prediction

Gets the predictions for an application version.

get_version_prediction(app_id, version_id, prediction_request, verbose=None, show_all_intents=None, log=None, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

version_id
str
Required

The application version ID.

prediction_request
PredictionRequest
Required

The prediction request parameters.

verbose
bool
default value: None

Indicates whether to get extra metadata for the entities predictions or not.

show_all_intents
bool
default value: None

Indicates whether to return all the intents in the response or just the top intent.

log
bool
default value: None

Indicates whether to log the endpoint query or not.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

PredictionResponse or ClientRawResponse if raw=true

Return type

Exceptions

Attributes

models

models = <module 'azure.cognitiveservices.language.luis.runtime.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\runtime\\models\\__init__.py'>