Function

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

Bases: object

The function to be executed.

Methods:

__init__(**kwargs)

Initializes a new Function object with values from keyword arguments.

Attributes:

description

Gets the description of this Function.

name

[Required] Gets the name of this Function.

parameters

[Required] Gets the parameters of this Function.

__init__(**kwargs)

Initializes a new Function object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • name (str) – The value to assign to the name property of this Function.

  • description (str) – The value to assign to the description property of this Function.

  • parameters (object) – The value to assign to the parameters property of this Function.

property description

Gets the description of this Function. The description of the function.

Returns

The description of this Function.

Return type

str

property name

[Required] Gets the name of this Function. The name of the function.

Returns

The name of this Function.

Return type

str

property parameters

[Required] Gets the parameters of this Function. The parameters of the function as JSON schema.

Returns

The parameters of this Function.

Return type

object