FunctionCallingPerformedAction¶
- class oci.generative_ai_agent_runtime.models.FunctionCallingPerformedAction(**kwargs)¶
Bases:
PerformedActionRepresents an action for recording the result of a function call.
Attributes:
A constant which can be used with the performed_action_type property of a PerformedAction.
A constant which can be used with the performed_action_type property of a PerformedAction.
[Required] Gets the action_id of this PerformedAction.
[Required] Gets the function_call_output of this FunctionCallingPerformedAction.
[Required] Gets the performed_action_type of this PerformedAction.
Methods:
__init__(**kwargs)Initializes a new FunctionCallingPerformedAction 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.
- PERFORMED_ACTION_TYPE_FUNCTION_CALLING_PERFORMED_ACTION = 'FUNCTION_CALLING_PERFORMED_ACTION'¶
A constant which can be used with the performed_action_type property of a PerformedAction. This constant has a value of “FUNCTION_CALLING_PERFORMED_ACTION”
- PERFORMED_ACTION_TYPE_HUMAN_APPROVAL_PERFORMED_ACTION = 'HUMAN_APPROVAL_PERFORMED_ACTION'¶
A constant which can be used with the performed_action_type property of a PerformedAction. This constant has a value of “HUMAN_APPROVAL_PERFORMED_ACTION”
- __init__(**kwargs)¶
Initializes a new FunctionCallingPerformedAction object with values from keyword arguments. The default value of the
performed_action_typeattribute of this class isFUNCTION_CALLING_PERFORMED_ACTIONand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
action_id (str) – The value to assign to the action_id property of this FunctionCallingPerformedAction.
performed_action_type (str) – The value to assign to the performed_action_type property of this FunctionCallingPerformedAction. Allowed values for this property are: “HUMAN_APPROVAL_PERFORMED_ACTION”, “FUNCTION_CALLING_PERFORMED_ACTION”
function_call_output (str) – The value to assign to the function_call_output property of this FunctionCallingPerformedAction.
- property action_id¶
[Required] Gets the action_id of this PerformedAction. The unique identifier for the action that has been performed.
- Returns
The action_id of this PerformedAction.
- Return type
str
- property function_call_output¶
[Required] Gets the function_call_output of this FunctionCallingPerformedAction. The result or output of the function call.
- Returns
The function_call_output of this FunctionCallingPerformedAction.
- Return type
str
- 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 performed_action_type¶
[Required] Gets the performed_action_type of this PerformedAction. Specifies the type of the performed action.
Allowed values for this property are: “HUMAN_APPROVAL_PERFORMED_ACTION”, “FUNCTION_CALLING_PERFORMED_ACTION”
- Returns
The performed_action_type of this PerformedAction.
- Return type
str