CohereCitationSourceV2¶
-
class
oci.generative_ai_inference.models.CohereCitationSourceV2(**kwargs)¶ Bases:
objectA citation source object.
Attributes
TYPE_DOCUMENTA constant which can be used with the type property of a CohereCitationSourceV2. TYPE_TOOLA constant which can be used with the type property of a CohereCitationSourceV2. documentGets the document of this CohereCitationSourceV2. toolGets the tool of this CohereCitationSourceV2. type[Required] Gets the type of this CohereCitationSourceV2. Methods
__init__(**kwargs)Initializes a new CohereCitationSourceV2 object with values from keyword arguments. -
TYPE_DOCUMENT= 'DOCUMENT'¶ A constant which can be used with the type property of a CohereCitationSourceV2. This constant has a value of “DOCUMENT”
-
TYPE_TOOL= 'TOOL'¶ A constant which can be used with the type property of a CohereCitationSourceV2. This constant has a value of “TOOL”
-
__init__(**kwargs)¶ Initializes a new CohereCitationSourceV2 object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - type (str) – The value to assign to the type property of this CohereCitationSourceV2. Allowed values for this property are: “TOOL”, “DOCUMENT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- tool (oci.generative_ai_inference.models.CohereCitationToolV2) – The value to assign to the tool property of this CohereCitationSourceV2.
- document (oci.generative_ai_inference.models.CohereCitationDocument) – The value to assign to the document property of this CohereCitationSourceV2.
-
document¶ Gets the document of this CohereCitationSourceV2.
Returns: The document of this CohereCitationSourceV2. Return type: oci.generative_ai_inference.models.CohereCitationDocument
-
tool¶ Gets the tool of this CohereCitationSourceV2.
Returns: The tool of this CohereCitationSourceV2. Return type: oci.generative_ai_inference.models.CohereCitationToolV2
-
type¶ [Required] Gets the type of this CohereCitationSourceV2. The source type.
Allowed values for this property are: “TOOL”, “DOCUMENT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The type of this CohereCitationSourceV2. Return type: str
-