ToolCall

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

Bases: object

The tool call generated by the model, such as function call.

Attributes:

TYPE_FUNCTION

A constant which can be used with the type property of a ToolCall.

id

[Required] Gets the id of this ToolCall.

type

[Required] Gets the type of this ToolCall.

Methods:

__init__(**kwargs)

Initializes a new ToolCall 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.

TYPE_FUNCTION = 'FUNCTION'

A constant which can be used with the type property of a ToolCall. This constant has a value of “FUNCTION”

__init__(**kwargs)

Initializes a new ToolCall object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • id (str) – The value to assign to the id property of this ToolCall.

  • type (str) – The value to assign to the type property of this ToolCall. Allowed values for this property are: “FUNCTION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

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 id

[Required] Gets the id of this ToolCall. The ID of the tool call.

Returns

The id of this ToolCall.

Return type

str

property type

[Required] Gets the type of this ToolCall. The type of the tool.

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

Returns

The type of this ToolCall.

Return type

str