-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Releasing version 65.63.2
- Loading branch information
Showing
137 changed files
with
5,594 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// 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. | ||
// Code generated. DO NOT EDIT. | ||
|
||
// Language API | ||
// | ||
// OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven, | ||
// pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts. | ||
// This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market. | ||
// | ||
|
||
package ailanguage | ||
|
||
import ( | ||
"fmt" | ||
"github.com/oracle/oci-go-sdk/v65/common" | ||
"strings" | ||
) | ||
|
||
// AssertionDetails The assertion details for health ner. | ||
type AssertionDetails struct { | ||
|
||
// id of the relation | ||
Id *string `mandatory:"true" json:"id"` | ||
|
||
// type of assertion ex, Status, Certainty, Temporality, Actor, etc. | ||
Type *string `mandatory:"true" json:"type"` | ||
|
||
// Possible value for assertion type | ||
Value *string `mandatory:"true" json:"value"` | ||
|
||
// Score or confidence for health detected entity. | ||
Score *float64 `mandatory:"true" json:"score"` | ||
} | ||
|
||
func (m AssertionDetails) String() string { | ||
return common.PointerString(m) | ||
} | ||
|
||
// ValidateEnumValue returns an error when providing an unsupported enum value | ||
// This function is being called during constructing API request process | ||
// Not recommended for calling this function directly | ||
func (m AssertionDetails) ValidateEnumValue() (bool, error) { | ||
errMessage := []string{} | ||
|
||
if len(errMessage) > 0 { | ||
return true, fmt.Errorf(strings.Join(errMessage, "\n")) | ||
} | ||
return false, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// 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. | ||
// Code generated. DO NOT EDIT. | ||
|
||
// Language API | ||
// | ||
// OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven, | ||
// pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts. | ||
// This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market. | ||
// | ||
|
||
package ailanguage | ||
|
||
import ( | ||
"fmt" | ||
"github.com/oracle/oci-go-sdk/v65/common" | ||
"strings" | ||
) | ||
|
||
// BatchDetectHealthEntityDetails The documents details for health entities detect call. | ||
type BatchDetectHealthEntityDetails struct { | ||
|
||
// The endpoint which have to be used for inferencing. | ||
EndpointId *string `mandatory:"true" json:"endpointId"` | ||
|
||
// List of Documents for detect health entities. | ||
Documents []TextDocument `mandatory:"true" json:"documents"` | ||
|
||
// List of NLP health ontologies to be linked | ||
LinkOntologies []string `mandatory:"false" json:"linkOntologies"` | ||
|
||
// is assertion on input text required. default value true. | ||
IsDetectAssertions *bool `mandatory:"false" json:"isDetectAssertions"` | ||
|
||
// is relationship on input text required. default value true. | ||
IsDetectRelationships *bool `mandatory:"false" json:"isDetectRelationships"` | ||
|
||
Profile *Profile `mandatory:"false" json:"profile"` | ||
} | ||
|
||
func (m BatchDetectHealthEntityDetails) String() string { | ||
return common.PointerString(m) | ||
} | ||
|
||
// ValidateEnumValue returns an error when providing an unsupported enum value | ||
// This function is being called during constructing API request process | ||
// Not recommended for calling this function directly | ||
func (m BatchDetectHealthEntityDetails) ValidateEnumValue() (bool, error) { | ||
errMessage := []string{} | ||
|
||
if len(errMessage) > 0 { | ||
return true, fmt.Errorf(strings.Join(errMessage, "\n")) | ||
} | ||
return false, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// 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. | ||
// Code generated. DO NOT EDIT. | ||
|
||
package ailanguage | ||
|
||
import ( | ||
"fmt" | ||
"github.com/oracle/oci-go-sdk/v65/common" | ||
"net/http" | ||
"strings" | ||
) | ||
|
||
// BatchDetectHealthEntityRequest wrapper for the BatchDetectHealthEntity operation | ||
// | ||
// # See also | ||
// | ||
// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/ailanguage/BatchDetectHealthEntity.go.html to see an example of how to use BatchDetectHealthEntityRequest. | ||
type BatchDetectHealthEntityRequest struct { | ||
|
||
// The details to make a health entity detect call. | ||
BatchDetectHealthEntityDetails `contributesTo:"body"` | ||
|
||
// The client request ID for tracing. | ||
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` | ||
|
||
// Metadata about the request. This information will not be transmitted to the service, but | ||
// represents information that the SDK will consume to drive retry behavior. | ||
RequestMetadata common.RequestMetadata | ||
} | ||
|
||
func (request BatchDetectHealthEntityRequest) String() string { | ||
return common.PointerString(request) | ||
} | ||
|
||
// HTTPRequest implements the OCIRequest interface | ||
func (request BatchDetectHealthEntityRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { | ||
|
||
_, err := request.ValidateEnumValue() | ||
if err != nil { | ||
return http.Request{}, err | ||
} | ||
return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) | ||
} | ||
|
||
// BinaryRequestBody implements the OCIRequest interface | ||
func (request BatchDetectHealthEntityRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { | ||
|
||
return nil, false | ||
|
||
} | ||
|
||
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. | ||
func (request BatchDetectHealthEntityRequest) RetryPolicy() *common.RetryPolicy { | ||
return request.RequestMetadata.RetryPolicy | ||
} | ||
|
||
// ValidateEnumValue returns an error when providing an unsupported enum value | ||
// This function is being called during constructing API request process | ||
// Not recommended for calling this function directly | ||
func (request BatchDetectHealthEntityRequest) ValidateEnumValue() (bool, error) { | ||
errMessage := []string{} | ||
if len(errMessage) > 0 { | ||
return true, fmt.Errorf(strings.Join(errMessage, "\n")) | ||
} | ||
return false, nil | ||
} | ||
|
||
// BatchDetectHealthEntityResponse wrapper for the BatchDetectHealthEntity operation | ||
type BatchDetectHealthEntityResponse struct { | ||
|
||
// The underlying http response | ||
RawResponse *http.Response | ||
|
||
// The BatchDetectHealthEntityResult instance | ||
BatchDetectHealthEntityResult `presentIn:"body"` | ||
|
||
// Unique Oracle-assigned identifier for the request. If you need to contact | ||
// Oracle about a particular request, please provide the request ID. | ||
OpcRequestId *string `presentIn:"header" name:"opc-request-id"` | ||
} | ||
|
||
func (response BatchDetectHealthEntityResponse) String() string { | ||
return common.PointerString(response) | ||
} | ||
|
||
// HTTPResponse implements the OCIResponse interface | ||
func (response BatchDetectHealthEntityResponse) HTTPResponse() *http.Response { | ||
return response.RawResponse | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// 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. | ||
// Code generated. DO NOT EDIT. | ||
|
||
// Language API | ||
// | ||
// OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven, | ||
// pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts. | ||
// This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market. | ||
// | ||
|
||
package ailanguage | ||
|
||
import ( | ||
"fmt" | ||
"github.com/oracle/oci-go-sdk/v65/common" | ||
"strings" | ||
) | ||
|
||
// BatchDetectHealthEntityResult Result of health entity detect call. | ||
type BatchDetectHealthEntityResult struct { | ||
|
||
// List of succeeded document response. | ||
Documents []HealthEntityDocumentResult `mandatory:"true" json:"documents"` | ||
|
||
// List of failed document response. | ||
Errors []DocumentError `mandatory:"false" json:"errors"` | ||
} | ||
|
||
func (m BatchDetectHealthEntityResult) String() string { | ||
return common.PointerString(m) | ||
} | ||
|
||
// ValidateEnumValue returns an error when providing an unsupported enum value | ||
// This function is being called during constructing API request process | ||
// Not recommended for calling this function directly | ||
func (m BatchDetectHealthEntityResult) ValidateEnumValue() (bool, error) { | ||
errMessage := []string{} | ||
|
||
if len(errMessage) > 0 { | ||
return true, fmt.Errorf(strings.Join(errMessage, "\n")) | ||
} | ||
return false, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.