/** * Generative AI Service Inference API * 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. Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to {@link #eNGenerative-ai-inferenceLatestChatResultChat(ENGenerative-ai-inferenceLatestChatResultChatRequest) eNGenerative-ai-inferenceLatestChatResultChat}, {@link #eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText(ENGenerative-ai-inferenceLatestGenerateTextResultGenerateTextRequest) eNGenerative-ai-inferenceLatestGenerateTextResultGenerateText}, {@link #eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText(ENGenerative-ai-inferenceLatestSummarizeTextResultSummarizeTextRequest) eNGenerative-ai-inferenceLatestSummarizeTextResultSummarizeText}, and {@link #eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText(ENGenerative-ai-inferenceLatestEmbedTextResultEmbedTextRequest) eNGenerative-ai-inferenceLatestEmbedTextResultEmbedText}. To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest} to {@link #eNGenerative-aiLatestModel(ENGenerative-aiLatestModelRequest) eNGenerative-aiLatestModel} 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 {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster}. Then, create a {@link #eNGenerative-aiLatestDedicatedAiCluster(ENGenerative-aiLatestDedicatedAiClusterRequest) eNGenerative-aiLatestDedicatedAiCluster} with an {@link Endpoint} to host your custom model. For resource management in the Generative AI service, use the {@link #eNGenerative-aiLatest(ENGenerative-aiLatestRequest) eNGenerative-aiLatest}. To learn more about the service, see the [Generative AI documentation](https://docs.oracle.com/iaas/Content/generative-ai/home.htm). **Important:** The IP addresses behind each DNS endpoint might change over time. Always use the DNS hostname listed under the following **API Endpoints** section and avoid using hard-coded fixed IP addresses. * OpenAPI spec version: 20231130 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2026, 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. */ import * as Annotation from "./annotation"; export import Annotation = Annotation.Annotation; import * as ApplyGuardrailsDetails from "./apply-guardrails-details"; export import ApplyGuardrailsDetails = ApplyGuardrailsDetails.ApplyGuardrailsDetails; import * as ApplyGuardrailsResult from "./apply-guardrails-result"; export import ApplyGuardrailsResult = ApplyGuardrailsResult.ApplyGuardrailsResult; import * as ApproximateLocation from "./approximate-location"; export import ApproximateLocation = ApproximateLocation.ApproximateLocation; import * as AudioUrl from "./audio-url"; export import AudioUrl = AudioUrl.AudioUrl; import * as BaseChatRequest from "./base-chat-request"; export import BaseChatRequest = BaseChatRequest.BaseChatRequest; import * as BaseChatResponse from "./base-chat-response"; export import BaseChatResponse = BaseChatResponse.BaseChatResponse; import * as CategoryScore from "./category-score"; export import CategoryScore = CategoryScore.CategoryScore; import * as ChatChoice from "./chat-choice"; export import ChatChoice = ChatChoice.ChatChoice; import * as ChatContent from "./chat-content"; export import ChatContent = ChatContent.ChatContent; import * as ChatDetails from "./chat-details"; export import ChatDetails = ChatDetails.ChatDetails; import * as ChatResult from "./chat-result"; export import ChatResult = ChatResult.ChatResult; import * as Choice from "./choice"; export import Choice = Choice.Choice; import * as Citation from "./citation"; export import Citation = Citation.Citation; import * as CitationOptionsV2 from "./citation-options-v2"; export import CitationOptionsV2 = CitationOptionsV2.CitationOptionsV2; import * as CohereCitationDocument from "./cohere-citation-document"; export import CohereCitationDocument = CohereCitationDocument.CohereCitationDocument; import * as CohereCitationSourceV2 from "./cohere-citation-source-v2"; export import CohereCitationSourceV2 = CohereCitationSourceV2.CohereCitationSourceV2; import * as CohereCitationToolV2 from "./cohere-citation-tool-v2"; export import CohereCitationToolV2 = CohereCitationToolV2.CohereCitationToolV2; import * as CohereCitationV2 from "./cohere-citation-v2"; export import CohereCitationV2 = CohereCitationV2.CohereCitationV2; import * as CohereContentV2 from "./cohere-content-v2"; export import CohereContentV2 = CohereContentV2.CohereContentV2; import * as CohereImageUrlV2 from "./cohere-image-url-v2"; export import CohereImageUrlV2 = CohereImageUrlV2.CohereImageUrlV2; import * as CohereMessage from "./cohere-message"; export import CohereMessage = CohereMessage.CohereMessage; import * as CohereMessageV2 from "./cohere-message-v2"; export import CohereMessageV2 = CohereMessageV2.CohereMessageV2; import * as CohereParameterDefinition from "./cohere-parameter-definition"; export import CohereParameterDefinition = CohereParameterDefinition.CohereParameterDefinition; import * as CohereResponseFormat from "./cohere-response-format"; export import CohereResponseFormat = CohereResponseFormat.CohereResponseFormat; import * as CohereThinkingV2 from "./cohere-thinking-v2"; export import CohereThinkingV2 = CohereThinkingV2.CohereThinkingV2; import * as CohereTool from "./cohere-tool"; export import CohereTool = CohereTool.CohereTool; import * as CohereToolCall from "./cohere-tool-call"; export import CohereToolCall = CohereToolCall.CohereToolCall; import * as CohereToolCallV2 from "./cohere-tool-call-v2"; export import CohereToolCallV2 = CohereToolCallV2.CohereToolCallV2; import * as CohereToolResult from "./cohere-tool-result"; export import CohereToolResult = CohereToolResult.CohereToolResult; import * as CohereToolV2 from "./cohere-tool-v2"; export import CohereToolV2 = CohereToolV2.CohereToolV2; import * as CompletionTokensDetails from "./completion-tokens-details"; export import CompletionTokensDetails = CompletionTokensDetails.CompletionTokensDetails; import * as ContentModerationConfiguration from "./content-moderation-configuration"; export import ContentModerationConfiguration = ContentModerationConfiguration.ContentModerationConfiguration; import * as ContentModerationResult from "./content-moderation-result"; export import ContentModerationResult = ContentModerationResult.ContentModerationResult; import * as Document from "./document"; export import Document = Document.Document; import * as DocumentRank from "./document-rank"; export import DocumentRank = DocumentRank.DocumentRank; import * as DocumentUrl from "./document-url"; export import DocumentUrl = DocumentUrl.DocumentUrl; import * as EmbedContent from "./embed-content"; export import EmbedContent = EmbedContent.EmbedContent; import * as EmbedTextDetails from "./embed-text-details"; export import EmbedTextDetails = EmbedTextDetails.EmbedTextDetails; import * as EmbedTextResult from "./embed-text-result"; export import EmbedTextResult = EmbedTextResult.EmbedTextResult; import * as Function from "./function"; export import Function = Function.Function; import * as GenerateTextDetails from "./generate-text-details"; export import GenerateTextDetails = GenerateTextDetails.GenerateTextDetails; import * as GenerateTextResult from "./generate-text-result"; export import GenerateTextResult = GenerateTextResult.GenerateTextResult; import * as GeneratedText from "./generated-text"; export import GeneratedText = GeneratedText.GeneratedText; import * as GroundingChunk from "./grounding-chunk"; export import GroundingChunk = GroundingChunk.GroundingChunk; import * as GroundingMetadata from "./grounding-metadata"; export import GroundingMetadata = GroundingMetadata.GroundingMetadata; import * as GroundingSupport from "./grounding-support"; export import GroundingSupport = GroundingSupport.GroundingSupport; import * as GroundingSupportSegment from "./grounding-support-segment"; export import GroundingSupportSegment = GroundingSupportSegment.GroundingSupportSegment; import * as GroundingWebChunk from "./grounding-web-chunk"; export import GroundingWebChunk = GroundingWebChunk.GroundingWebChunk; import * as GuardrailConfigs from "./guardrail-configs"; export import GuardrailConfigs = GuardrailConfigs.GuardrailConfigs; import * as GuardrailVersion from "./guardrail-version"; export import GuardrailVersion = GuardrailVersion.GuardrailVersion; import * as GuardrailVersionCollection from "./guardrail-version-collection"; export import GuardrailVersionCollection = GuardrailVersionCollection.GuardrailVersionCollection; import * as GuardrailVersionConfig from "./guardrail-version-config"; export import GuardrailVersionConfig = GuardrailVersionConfig.GuardrailVersionConfig; import * as GuardrailVersionResponse from "./guardrail-version-response"; export import GuardrailVersionResponse = GuardrailVersionResponse.GuardrailVersionResponse; import * as GuardrailVersionSummary from "./guardrail-version-summary"; export import GuardrailVersionSummary = GuardrailVersionSummary.GuardrailVersionSummary; import * as GuardrailsImageUrl from "./guardrails-image-url"; export import GuardrailsImageUrl = GuardrailsImageUrl.GuardrailsImageUrl; import * as GuardrailsInput from "./guardrails-input"; export import GuardrailsInput = GuardrailsInput.GuardrailsInput; import * as GuardrailsResults from "./guardrails-results"; export import GuardrailsResults = GuardrailsResults.GuardrailsResults; import * as ImageUrl from "./image-url"; export import ImageUrl = ImageUrl.ImageUrl; import * as LlmInferenceRequest from "./llm-inference-request"; export import LlmInferenceRequest = LlmInferenceRequest.LlmInferenceRequest; import * as LlmInferenceResponse from "./llm-inference-response"; export import LlmInferenceResponse = LlmInferenceResponse.LlmInferenceResponse; import * as LogProbability from "./log-probability"; export import LogProbability = LogProbability.LogProbability; import * as Logprobs from "./logprobs"; export import Logprobs = Logprobs.Logprobs; import * as Message from "./message"; export import Message = Message.Message; import * as PersonallyIdentifiableInformationConfiguration from "./personally-identifiable-information-configuration"; export import PersonallyIdentifiableInformationConfiguration = PersonallyIdentifiableInformationConfiguration.PersonallyIdentifiableInformationConfiguration; import * as PersonallyIdentifiableInformationResult from "./personally-identifiable-information-result"; export import PersonallyIdentifiableInformationResult = PersonallyIdentifiableInformationResult.PersonallyIdentifiableInformationResult; import * as Prediction from "./prediction"; export import Prediction = Prediction.Prediction; import * as PromptInjectionConfiguration from "./prompt-injection-configuration"; export import PromptInjectionConfiguration = PromptInjectionConfiguration.PromptInjectionConfiguration; import * as PromptInjectionProtectionResult from "./prompt-injection-protection-result"; export import PromptInjectionProtectionResult = PromptInjectionProtectionResult.PromptInjectionProtectionResult; import * as PromptTokensDetails from "./prompt-tokens-details"; export import PromptTokensDetails = PromptTokensDetails.PromptTokensDetails; import * as RerankTextDetails from "./rerank-text-details"; export import RerankTextDetails = RerankTextDetails.RerankTextDetails; import * as RerankTextResult from "./rerank-text-result"; export import RerankTextResult = RerankTextResult.RerankTextResult; import * as ResponseFormat from "./response-format"; export import ResponseFormat = ResponseFormat.ResponseFormat; import * as ResponseJsonSchema from "./response-json-schema"; export import ResponseJsonSchema = ResponseJsonSchema.ResponseJsonSchema; import * as SearchEntryPoint from "./search-entry-point"; export import SearchEntryPoint = SearchEntryPoint.SearchEntryPoint; import * as SearchQuery from "./search-query"; export import SearchQuery = SearchQuery.SearchQuery; import * as ServingMode from "./serving-mode"; export import ServingMode = ServingMode.ServingMode; import * as StreamOptions from "./stream-options"; export import StreamOptions = StreamOptions.StreamOptions; import * as SummarizeTextDetails from "./summarize-text-details"; export import SummarizeTextDetails = SummarizeTextDetails.SummarizeTextDetails; import * as SummarizeTextResult from "./summarize-text-result"; export import SummarizeTextResult = SummarizeTextResult.SummarizeTextResult; import * as TokenLikelihood from "./token-likelihood"; export import TokenLikelihood = TokenLikelihood.TokenLikelihood; import * as ToolCall from "./tool-call"; export import ToolCall = ToolCall.ToolCall; import * as ToolChoice from "./tool-choice"; export import ToolChoice = ToolChoice.ToolChoice; import * as ToolDefinition from "./tool-definition"; export import ToolDefinition = ToolDefinition.ToolDefinition; import * as UrlCitation from "./url-citation"; export import UrlCitation = UrlCitation.UrlCitation; import * as Usage from "./usage"; export import Usage = Usage.Usage; import * as VideoUrl from "./video-url"; export import VideoUrl = VideoUrl.VideoUrl; import * as WebSearchOptions from "./web-search-options"; export import WebSearchOptions = WebSearchOptions.WebSearchOptions; import * as AssistantMessage from "./assistant-message"; export import AssistantMessage = AssistantMessage.AssistantMessage; import * as AudioContent from "./audio-content"; export import AudioContent = AudioContent.AudioContent; import * as CohereAssistantMessageV2 from "./cohere-assistant-message-v2"; export import CohereAssistantMessageV2 = CohereAssistantMessageV2.CohereAssistantMessageV2; import * as CohereChatBotMessage from "./cohere-chat-bot-message"; export import CohereChatBotMessage = CohereChatBotMessage.CohereChatBotMessage; import * as CohereChatRequest from "./cohere-chat-request"; export import CohereChatRequest = CohereChatRequest.CohereChatRequest; import * as CohereChatRequestV2 from "./cohere-chat-request-v2"; export import CohereChatRequestV2 = CohereChatRequestV2.CohereChatRequestV2; import * as CohereChatResponse from "./cohere-chat-response"; export import CohereChatResponse = CohereChatResponse.CohereChatResponse; import * as CohereChatResponseV2 from "./cohere-chat-response-v2"; export import CohereChatResponseV2 = CohereChatResponseV2.CohereChatResponseV2; import * as CohereDocumentContentV2 from "./cohere-document-content-v2"; export import CohereDocumentContentV2 = CohereDocumentContentV2.CohereDocumentContentV2; import * as CohereImageContentV2 from "./cohere-image-content-v2"; export import CohereImageContentV2 = CohereImageContentV2.CohereImageContentV2; import * as CohereLlmInferenceRequest from "./cohere-llm-inference-request"; export import CohereLlmInferenceRequest = CohereLlmInferenceRequest.CohereLlmInferenceRequest; import * as CohereLlmInferenceResponse from "./cohere-llm-inference-response"; export import CohereLlmInferenceResponse = CohereLlmInferenceResponse.CohereLlmInferenceResponse; import * as CohereResponseJsonFormat from "./cohere-response-json-format"; export import CohereResponseJsonFormat = CohereResponseJsonFormat.CohereResponseJsonFormat; import * as CohereResponseTextFormat from "./cohere-response-text-format"; export import CohereResponseTextFormat = CohereResponseTextFormat.CohereResponseTextFormat; import * as CohereSystemMessage from "./cohere-system-message"; export import CohereSystemMessage = CohereSystemMessage.CohereSystemMessage; import * as CohereSystemMessageV2 from "./cohere-system-message-v2"; export import CohereSystemMessageV2 = CohereSystemMessageV2.CohereSystemMessageV2; import * as CohereTextContentV2 from "./cohere-text-content-v2"; export import CohereTextContentV2 = CohereTextContentV2.CohereTextContentV2; import * as CohereThinkingContentV2 from "./cohere-thinking-content-v2"; export import CohereThinkingContentV2 = CohereThinkingContentV2.CohereThinkingContentV2; import * as CohereToolMessage from "./cohere-tool-message"; export import CohereToolMessage = CohereToolMessage.CohereToolMessage; import * as CohereToolMessageV2 from "./cohere-tool-message-v2"; export import CohereToolMessageV2 = CohereToolMessageV2.CohereToolMessageV2; import * as CohereUserMessage from "./cohere-user-message"; export import CohereUserMessage = CohereUserMessage.CohereUserMessage; import * as CohereUserMessageV2 from "./cohere-user-message-v2"; export import CohereUserMessageV2 = CohereUserMessageV2.CohereUserMessageV2; import * as DedicatedServingMode from "./dedicated-serving-mode"; export import DedicatedServingMode = DedicatedServingMode.DedicatedServingMode; import * as DeveloperMessage from "./developer-message"; export import DeveloperMessage = DeveloperMessage.DeveloperMessage; import * as DocumentContent from "./document-content"; export import DocumentContent = DocumentContent.DocumentContent; import * as EmbedImageContent from "./embed-image-content"; export import EmbedImageContent = EmbedImageContent.EmbedImageContent; import * as EmbedTextContent from "./embed-text-content"; export import EmbedTextContent = EmbedTextContent.EmbedTextContent; import * as FunctionCall from "./function-call"; export import FunctionCall = FunctionCall.FunctionCall; import * as FunctionDefinition from "./function-definition"; export import FunctionDefinition = FunctionDefinition.FunctionDefinition; import * as GenericChatRequest from "./generic-chat-request"; export import GenericChatRequest = GenericChatRequest.GenericChatRequest; import * as GenericChatResponse from "./generic-chat-response"; export import GenericChatResponse = GenericChatResponse.GenericChatResponse; import * as GuardrailsImageInput from "./guardrails-image-input"; export import GuardrailsImageInput = GuardrailsImageInput.GuardrailsImageInput; import * as GuardrailsTextInput from "./guardrails-text-input"; export import GuardrailsTextInput = GuardrailsTextInput.GuardrailsTextInput; import * as ImageContent from "./image-content"; export import ImageContent = ImageContent.ImageContent; import * as JsonObjectResponseFormat from "./json-object-response-format"; export import JsonObjectResponseFormat = JsonObjectResponseFormat.JsonObjectResponseFormat; import * as JsonSchemaResponseFormat from "./json-schema-response-format"; export import JsonSchemaResponseFormat = JsonSchemaResponseFormat.JsonSchemaResponseFormat; import * as LlamaLlmInferenceRequest from "./llama-llm-inference-request"; export import LlamaLlmInferenceRequest = LlamaLlmInferenceRequest.LlamaLlmInferenceRequest; import * as LlamaLlmInferenceResponse from "./llama-llm-inference-response"; export import LlamaLlmInferenceResponse = LlamaLlmInferenceResponse.LlamaLlmInferenceResponse; import * as OnDemandServingMode from "./on-demand-serving-mode"; export import OnDemandServingMode = OnDemandServingMode.OnDemandServingMode; import * as StaticContent from "./static-content"; export import StaticContent = StaticContent.StaticContent; import * as SystemMessage from "./system-message"; export import SystemMessage = SystemMessage.SystemMessage; import * as TextContent from "./text-content"; export import TextContent = TextContent.TextContent; import * as TextResponseFormat from "./text-response-format"; export import TextResponseFormat = TextResponseFormat.TextResponseFormat; import * as ToolChoiceAuto from "./tool-choice-auto"; export import ToolChoiceAuto = ToolChoiceAuto.ToolChoiceAuto; import * as ToolChoiceFunction from "./tool-choice-function"; export import ToolChoiceFunction = ToolChoiceFunction.ToolChoiceFunction; import * as ToolChoiceNone from "./tool-choice-none"; export import ToolChoiceNone = ToolChoiceNone.ToolChoiceNone; import * as ToolChoiceRequired from "./tool-choice-required"; export import ToolChoiceRequired = ToolChoiceRequired.ToolChoiceRequired; import * as ToolMessage from "./tool-message"; export import ToolMessage = ToolMessage.ToolMessage; import * as UserMessage from "./user-message"; export import UserMessage = UserMessage.UserMessage; import * as VideoContent from "./video-content"; export import VideoContent = VideoContent.VideoContent;