Skip to content

Commit dd5afcc

Browse files
Releasing version 65.89.1
Releasing version 65.89.1
2 parents 727df30 + 3e3a1f2 commit dd5afcc

24 files changed

+934
-12
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66

7+
## 65.89.1 - 2025-04-15
8+
### Added
9+
- Support for applying guardrails, enabling content moderation and detection of Prompt Injection and Personally Identifiable Information (PII) in the Generative AI Inference service
10+
- Support for providing customer contacts for operational notifications in the Database service
11+
712
## 65.89.0 - 2025-04-08
813
### Added
914
- Support for connector source and targets with private endpoints in the Resource Scheduler service

common/version.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

database/autonomous_container_database.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ type AutonomousContainerDatabase struct {
3636
// Database patch model preference.
3737
PatchModel AutonomousContainerDatabasePatchModelEnum `mandatory:"true" json:"patchModel"`
3838

39+
// Customer Contacts. Setting this to an empty list removes all customer contacts.
40+
CustomerContacts []CustomerContact `mandatory:"false" json:"customerContacts"`
41+
3942
// **Deprecated.** The `DB_UNIQUE_NAME` value is set by Oracle Cloud Infrastructure. Do not specify a value for this parameter. Specifying a value for this field will cause Terraform operations to fail.
4043
DbUniqueName *string `mandatory:"false" json:"dbUniqueName"`
4144

database/autonomous_container_database_summary.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ type AutonomousContainerDatabaseSummary struct {
3636
// Database patch model preference.
3737
PatchModel AutonomousContainerDatabaseSummaryPatchModelEnum `mandatory:"true" json:"patchModel"`
3838

39+
// Customer Contacts. Setting this to an empty list removes all customer contacts.
40+
CustomerContacts []CustomerContact `mandatory:"false" json:"customerContacts"`
41+
3942
// **Deprecated.** The `DB_UNIQUE_NAME` value is set by Oracle Cloud Infrastructure. Do not specify a value for this parameter. Specifying a value for this field will cause Terraform operations to fail.
4043
DbUniqueName *string `mandatory:"false" json:"dbUniqueName"`
4144

database/create_autonomous_container_database_details.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ type CreateAutonomousContainerDatabaseDetails struct {
2424
// Database Patch model preference.
2525
PatchModel CreateAutonomousContainerDatabaseDetailsPatchModelEnum `mandatory:"true" json:"patchModel"`
2626

27+
// Customer Contacts. Setting this to an empty list removes all customer contacts.
28+
CustomerContacts []CustomerContact `mandatory:"false" json:"customerContacts"`
29+
2730
// **Deprecated.** The `DB_UNIQUE_NAME` value is set by Oracle Cloud Infrastructure. Do not specify a value for this parameter. Specifying a value for this field will cause Terraform operations to fail.
2831
DbUniqueName *string `mandatory:"false" json:"dbUniqueName"`
2932

database/update_autonomous_container_database_details.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ type UpdateAutonomousContainerDatabaseDetails struct {
2121
// The display name for the Autonomous Container Database.
2222
DisplayName *string `mandatory:"false" json:"displayName"`
2323

24+
// Customer Contacts. Setting this to an empty list removes all customer contacts.
25+
CustomerContacts []CustomerContact `mandatory:"false" json:"customerContacts"`
26+
2427
// Database Patch model preference.
2528
PatchModel UpdateAutonomousContainerDatabaseDetailsPatchModelEnum `mandatory:"false" json:"patchModel,omitempty"`
2629

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved.
2+
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
3+
// Code generated. DO NOT EDIT.
4+
5+
// Generative AI Service Inference API
6+
//
7+
// OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings.
8+
// Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to /EN/generative-ai-inference/latest/ChatResult/Chat, /EN/generative-ai-inference/latest/GenerateTextResult/GenerateText, /EN/generative-ai-inference/latest/SummarizeTextResult/SummarizeText, and /EN/generative-ai-inference/latest/EmbedTextResult/EmbedText.
9+
// To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the /EN/generative-ai/latest/ to /EN/generative-ai/latest/Model/ by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a /EN/generative-ai/latest/DedicatedAiCluster/. Then, create a /EN/generative-ai/latest/DedicatedAiCluster/ with an Endpoint to host your custom model. For resource management in the Generative AI service, use the /EN/generative-ai/latest/.
10+
// To learn more about the service, see the Generative AI documentation (https://docs.oracle.com/iaas/Content/generative-ai/home.htm).
11+
//
12+
13+
package generativeaiinference
14+
15+
import (
16+
"encoding/json"
17+
"fmt"
18+
"github.com/oracle/oci-go-sdk/v65/common"
19+
"strings"
20+
)
21+
22+
// ApplyGuardrailsDetails Details for applying guardrails to the input text.
23+
type ApplyGuardrailsDetails struct {
24+
Input GuardrailsInput `mandatory:"true" json:"input"`
25+
26+
GuardrailConfigs *GuardrailConfigs `mandatory:"true" json:"guardrailConfigs"`
27+
28+
// The OCID of the compartment to apply guardrails.
29+
CompartmentId *string `mandatory:"true" json:"compartmentId"`
30+
}
31+
32+
func (m ApplyGuardrailsDetails) String() string {
33+
return common.PointerString(m)
34+
}
35+
36+
// ValidateEnumValue returns an error when providing an unsupported enum value
37+
// This function is being called during constructing API request process
38+
// Not recommended for calling this function directly
39+
func (m ApplyGuardrailsDetails) ValidateEnumValue() (bool, error) {
40+
errMessage := []string{}
41+
42+
if len(errMessage) > 0 {
43+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
44+
}
45+
return false, nil
46+
}
47+
48+
// UnmarshalJSON unmarshals from json
49+
func (m *ApplyGuardrailsDetails) UnmarshalJSON(data []byte) (e error) {
50+
model := struct {
51+
Input guardrailsinput `json:"input"`
52+
GuardrailConfigs *GuardrailConfigs `json:"guardrailConfigs"`
53+
CompartmentId *string `json:"compartmentId"`
54+
}{}
55+
56+
e = json.Unmarshal(data, &model)
57+
if e != nil {
58+
return
59+
}
60+
var nn interface{}
61+
nn, e = model.Input.UnmarshalPolymorphicJSON(model.Input.JsonData)
62+
if e != nil {
63+
return
64+
}
65+
if nn != nil {
66+
m.Input = nn.(GuardrailsInput)
67+
} else {
68+
m.Input = nil
69+
}
70+
71+
m.GuardrailConfigs = model.GuardrailConfigs
72+
73+
m.CompartmentId = model.CompartmentId
74+
75+
return
76+
}
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved.
2+
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
3+
// Code generated. DO NOT EDIT.
4+
5+
package generativeaiinference
6+
7+
import (
8+
"fmt"
9+
"github.com/oracle/oci-go-sdk/v65/common"
10+
"net/http"
11+
"strings"
12+
)
13+
14+
// ApplyGuardrailsRequest wrapper for the ApplyGuardrails operation
15+
//
16+
// # See also
17+
//
18+
// Click https://docs.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/generativeaiinference/ApplyGuardrails.go.html to see an example of how to use ApplyGuardrailsRequest.
19+
type ApplyGuardrailsRequest struct {
20+
21+
// Details for applying guardrails to the input text.
22+
ApplyGuardrailsDetails `contributesTo:"body"`
23+
24+
// A token that uniquely identifies a request so it can be retried in case of a timeout or
25+
// server error without risk of executing that same action again. Retry tokens expire after 24
26+
// hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request
27+
// is rejected.
28+
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
29+
30+
// The client request ID for tracing.
31+
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
32+
33+
// Metadata about the request. This information will not be transmitted to the service, but
34+
// represents information that the SDK will consume to drive retry behavior.
35+
RequestMetadata common.RequestMetadata
36+
}
37+
38+
func (request ApplyGuardrailsRequest) String() string {
39+
return common.PointerString(request)
40+
}
41+
42+
// HTTPRequest implements the OCIRequest interface
43+
func (request ApplyGuardrailsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) {
44+
45+
_, err := request.ValidateEnumValue()
46+
if err != nil {
47+
return http.Request{}, err
48+
}
49+
return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders)
50+
}
51+
52+
// BinaryRequestBody implements the OCIRequest interface
53+
func (request ApplyGuardrailsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) {
54+
55+
return nil, false
56+
57+
}
58+
59+
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
60+
func (request ApplyGuardrailsRequest) RetryPolicy() *common.RetryPolicy {
61+
return request.RequestMetadata.RetryPolicy
62+
}
63+
64+
// ValidateEnumValue returns an error when providing an unsupported enum value
65+
// This function is being called during constructing API request process
66+
// Not recommended for calling this function directly
67+
func (request ApplyGuardrailsRequest) ValidateEnumValue() (bool, error) {
68+
errMessage := []string{}
69+
if len(errMessage) > 0 {
70+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
71+
}
72+
return false, nil
73+
}
74+
75+
// ApplyGuardrailsResponse wrapper for the ApplyGuardrails operation
76+
type ApplyGuardrailsResponse struct {
77+
78+
// The underlying http response
79+
RawResponse *http.Response
80+
81+
// The ApplyGuardrailsResult instance
82+
ApplyGuardrailsResult `presentIn:"body"`
83+
84+
// Unique Oracle-assigned identifier for the request. If you need to contact
85+
// Oracle about a particular request, please provide the request ID.
86+
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
87+
}
88+
89+
func (response ApplyGuardrailsResponse) String() string {
90+
return common.PointerString(response)
91+
}
92+
93+
// HTTPResponse implements the OCIResponse interface
94+
func (response ApplyGuardrailsResponse) HTTPResponse() *http.Response {
95+
return response.RawResponse
96+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved.
2+
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
3+
// Code generated. DO NOT EDIT.
4+
5+
// Generative AI Service Inference API
6+
//
7+
// OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings.
8+
// Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to /EN/generative-ai-inference/latest/ChatResult/Chat, /EN/generative-ai-inference/latest/GenerateTextResult/GenerateText, /EN/generative-ai-inference/latest/SummarizeTextResult/SummarizeText, and /EN/generative-ai-inference/latest/EmbedTextResult/EmbedText.
9+
// To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the /EN/generative-ai/latest/ to /EN/generative-ai/latest/Model/ by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a /EN/generative-ai/latest/DedicatedAiCluster/. Then, create a /EN/generative-ai/latest/DedicatedAiCluster/ with an Endpoint to host your custom model. For resource management in the Generative AI service, use the /EN/generative-ai/latest/.
10+
// To learn more about the service, see the Generative AI documentation (https://docs.oracle.com/iaas/Content/generative-ai/home.htm).
11+
//
12+
13+
package generativeaiinference
14+
15+
import (
16+
"fmt"
17+
"github.com/oracle/oci-go-sdk/v65/common"
18+
"strings"
19+
)
20+
21+
// ApplyGuardrailsResult The result of applying guardrails to the input text.
22+
type ApplyGuardrailsResult struct {
23+
Results *GuardrailsResults `mandatory:"true" json:"results"`
24+
}
25+
26+
func (m ApplyGuardrailsResult) String() string {
27+
return common.PointerString(m)
28+
}
29+
30+
// ValidateEnumValue returns an error when providing an unsupported enum value
31+
// This function is being called during constructing API request process
32+
// Not recommended for calling this function directly
33+
func (m ApplyGuardrailsResult) ValidateEnumValue() (bool, error) {
34+
errMessage := []string{}
35+
36+
if len(errMessage) > 0 {
37+
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
38+
}
39+
return false, nil
40+
}

generativeaiinference/assistant_message.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import (
2020
)
2121

2222
// AssistantMessage Represents a single instance of assistant message.
23+
// Note: When responding to a tool call, set `content` to `null` (not `""`).
24+
// This ensures the model correctly processes tool call messages in multi-step interactions.
2325
type AssistantMessage struct {
2426

2527
// Contents of the chat message.

0 commit comments

Comments
 (0)