LlamaLlmInferenceResponse

class oci.generative_ai_inference.models.LlamaLlmInferenceResponse(**kwargs)

Bases: LlmInferenceResponse

The generated text result to return.

Attributes:

RUNTIME_TYPE_COHERE

A constant which can be used with the runtime_type property of a LlmInferenceResponse.

RUNTIME_TYPE_LLAMA

A constant which can be used with the runtime_type property of a LlmInferenceResponse.

choices

[Required] Gets the choices of this LlamaLlmInferenceResponse.

created

[Required] Gets the created of this LlamaLlmInferenceResponse.

runtime_type

[Required] Gets the runtime_type of this LlmInferenceResponse.

Methods:

__init__(**kwargs)

Initializes a new LlamaLlmInferenceResponse object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

RUNTIME_TYPE_COHERE = 'COHERE'

A constant which can be used with the runtime_type property of a LlmInferenceResponse. This constant has a value of “COHERE”

RUNTIME_TYPE_LLAMA = 'LLAMA'

A constant which can be used with the runtime_type property of a LlmInferenceResponse. This constant has a value of “LLAMA”

__init__(**kwargs)

Initializes a new LlamaLlmInferenceResponse object with values from keyword arguments. The default value of the runtime_type attribute of this class is LLAMA and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • runtime_type (str) – The value to assign to the runtime_type property of this LlamaLlmInferenceResponse. Allowed values for this property are: “COHERE”, “LLAMA”

  • created (datetime) – The value to assign to the created property of this LlamaLlmInferenceResponse.

  • choices (list[oci.generative_ai_inference.models.Choice]) – The value to assign to the choices property of this LlamaLlmInferenceResponse.

property choices

[Required] Gets the choices of this LlamaLlmInferenceResponse. A list of generated texts. Can be more than one if n is greater than 1.

Returns

The choices of this LlamaLlmInferenceResponse.

Return type

list[oci.generative_ai_inference.models.Choice]

property created

[Required] Gets the created of this LlamaLlmInferenceResponse. The Unix timestamp (in seconds) of when the generation was created.

Returns

The created of this LlamaLlmInferenceResponse.

Return type

datetime

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property runtime_type

[Required] Gets the runtime_type of this LlmInferenceResponse. The runtime of the provided model.

Allowed values for this property are: “COHERE”, “LLAMA”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The runtime_type of this LlmInferenceResponse.

Return type

str