File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/generative_ai_inference/models/__init__.py
Back
# coding: utf-8 # Copyright (c) 2016, 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. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130 from __future__ import absolute_import from .annotation import Annotation from .apply_guardrails_details import ApplyGuardrailsDetails from .apply_guardrails_result import ApplyGuardrailsResult from .approximate_location import ApproximateLocation from .assistant_message import AssistantMessage from .audio_content import AudioContent from .audio_url import AudioUrl from .base_chat_request import BaseChatRequest from .base_chat_response import BaseChatResponse from .category_score import CategoryScore from .chat_choice import ChatChoice from .chat_content import ChatContent from .chat_details import ChatDetails from .chat_result import ChatResult from .choice import Choice from .citation import Citation from .citation_options_v2 import CitationOptionsV2 from .cohere_assistant_message_v2 import CohereAssistantMessageV2 from .cohere_chat_bot_message import CohereChatBotMessage from .cohere_chat_request import CohereChatRequest from .cohere_chat_request_v2 import CohereChatRequestV2 from .cohere_chat_response import CohereChatResponse from .cohere_chat_response_v2 import CohereChatResponseV2 from .cohere_citation_document import CohereCitationDocument from .cohere_citation_source_v2 import CohereCitationSourceV2 from .cohere_citation_tool_v2 import CohereCitationToolV2 from .cohere_citation_v2 import CohereCitationV2 from .cohere_content_v2 import CohereContentV2 from .cohere_document_content_v2 import CohereDocumentContentV2 from .cohere_image_content_v2 import CohereImageContentV2 from .cohere_image_url_v2 import CohereImageUrlV2 from .cohere_llm_inference_request import CohereLlmInferenceRequest from .cohere_llm_inference_response import CohereLlmInferenceResponse from .cohere_message import CohereMessage from .cohere_message_v2 import CohereMessageV2 from .cohere_parameter_definition import CohereParameterDefinition from .cohere_response_format import CohereResponseFormat from .cohere_response_json_format import CohereResponseJsonFormat from .cohere_response_text_format import CohereResponseTextFormat from .cohere_system_message import CohereSystemMessage from .cohere_system_message_v2 import CohereSystemMessageV2 from .cohere_text_content_v2 import CohereTextContentV2 from .cohere_thinking_content_v2 import CohereThinkingContentV2 from .cohere_thinking_v2 import CohereThinkingV2 from .cohere_tool import CohereTool from .cohere_tool_call import CohereToolCall from .cohere_tool_call_v2 import CohereToolCallV2 from .cohere_tool_message import CohereToolMessage from .cohere_tool_message_v2 import CohereToolMessageV2 from .cohere_tool_result import CohereToolResult from .cohere_tool_v2 import CohereToolV2 from .cohere_user_message import CohereUserMessage from .cohere_user_message_v2 import CohereUserMessageV2 from .completion_tokens_details import CompletionTokensDetails from .content_moderation_configuration import ContentModerationConfiguration from .content_moderation_result import ContentModerationResult from .dedicated_serving_mode import DedicatedServingMode from .developer_message import DeveloperMessage from .document import Document from .document_content import DocumentContent from .document_rank import DocumentRank from .document_url import DocumentUrl from .embed_text_details import EmbedTextDetails from .embed_text_result import EmbedTextResult from .function import Function from .function_call import FunctionCall from .function_definition import FunctionDefinition from .generate_text_details import GenerateTextDetails from .generate_text_result import GenerateTextResult from .generated_text import GeneratedText from .generic_chat_request import GenericChatRequest from .generic_chat_response import GenericChatResponse from .grounding_chunk import GroundingChunk from .grounding_metadata import GroundingMetadata from .grounding_support import GroundingSupport from .grounding_support_segment import GroundingSupportSegment from .grounding_web_chunk import GroundingWebChunk from .guardrail_configs import GuardrailConfigs from .guardrails_input import GuardrailsInput from .guardrails_results import GuardrailsResults from .guardrails_text_input import GuardrailsTextInput from .image_content import ImageContent from .image_url import ImageUrl from .json_object_response_format import JsonObjectResponseFormat from .json_schema_response_format import JsonSchemaResponseFormat from .llama_llm_inference_request import LlamaLlmInferenceRequest from .llama_llm_inference_response import LlamaLlmInferenceResponse from .llm_inference_request import LlmInferenceRequest from .llm_inference_response import LlmInferenceResponse from .log_probability import LogProbability from .logprobs import Logprobs from .message import Message from .on_demand_serving_mode import OnDemandServingMode from .personally_identifiable_information_configuration import PersonallyIdentifiableInformationConfiguration from .personally_identifiable_information_result import PersonallyIdentifiableInformationResult from .prediction import Prediction from .prompt_injection_configuration import PromptInjectionConfiguration from .prompt_injection_protection_result import PromptInjectionProtectionResult from .prompt_tokens_details import PromptTokensDetails from .rerank_text_details import RerankTextDetails from .rerank_text_result import RerankTextResult from .response_format import ResponseFormat from .response_json_schema import ResponseJsonSchema from .search_entry_point import SearchEntryPoint from .search_query import SearchQuery from .serving_mode import ServingMode from .static_content import StaticContent from .stream_options import StreamOptions from .summarize_text_details import SummarizeTextDetails from .summarize_text_result import SummarizeTextResult from .system_message import SystemMessage from .text_content import TextContent from .text_response_format import TextResponseFormat from .token_likelihood import TokenLikelihood from .tool_call import ToolCall from .tool_choice import ToolChoice from .tool_choice_auto import ToolChoiceAuto from .tool_choice_function import ToolChoiceFunction from .tool_choice_none import ToolChoiceNone from .tool_choice_required import ToolChoiceRequired from .tool_definition import ToolDefinition from .tool_message import ToolMessage from .url_citation import UrlCitation from .usage import Usage from .user_message import UserMessage from .video_content import VideoContent from .video_url import VideoUrl from .web_search_options import WebSearchOptions # Maps type names to classes for generative_ai_inference services. generative_ai_inference_type_mapping = { "Annotation": Annotation, "ApplyGuardrailsDetails": ApplyGuardrailsDetails, "ApplyGuardrailsResult": ApplyGuardrailsResult, "ApproximateLocation": ApproximateLocation, "AssistantMessage": AssistantMessage, "AudioContent": AudioContent, "AudioUrl": AudioUrl, "BaseChatRequest": BaseChatRequest, "BaseChatResponse": BaseChatResponse, "CategoryScore": CategoryScore, "ChatChoice": ChatChoice, "ChatContent": ChatContent, "ChatDetails": ChatDetails, "ChatResult": ChatResult, "Choice": Choice, "Citation": Citation, "CitationOptionsV2": CitationOptionsV2, "CohereAssistantMessageV2": CohereAssistantMessageV2, "CohereChatBotMessage": CohereChatBotMessage, "CohereChatRequest": CohereChatRequest, "CohereChatRequestV2": CohereChatRequestV2, "CohereChatResponse": CohereChatResponse, "CohereChatResponseV2": CohereChatResponseV2, "CohereCitationDocument": CohereCitationDocument, "CohereCitationSourceV2": CohereCitationSourceV2, "CohereCitationToolV2": CohereCitationToolV2, "CohereCitationV2": CohereCitationV2, "CohereContentV2": CohereContentV2, "CohereDocumentContentV2": CohereDocumentContentV2, "CohereImageContentV2": CohereImageContentV2, "CohereImageUrlV2": CohereImageUrlV2, "CohereLlmInferenceRequest": CohereLlmInferenceRequest, "CohereLlmInferenceResponse": CohereLlmInferenceResponse, "CohereMessage": CohereMessage, "CohereMessageV2": CohereMessageV2, "CohereParameterDefinition": CohereParameterDefinition, "CohereResponseFormat": CohereResponseFormat, "CohereResponseJsonFormat": CohereResponseJsonFormat, "CohereResponseTextFormat": CohereResponseTextFormat, "CohereSystemMessage": CohereSystemMessage, "CohereSystemMessageV2": CohereSystemMessageV2, "CohereTextContentV2": CohereTextContentV2, "CohereThinkingContentV2": CohereThinkingContentV2, "CohereThinkingV2": CohereThinkingV2, "CohereTool": CohereTool, "CohereToolCall": CohereToolCall, "CohereToolCallV2": CohereToolCallV2, "CohereToolMessage": CohereToolMessage, "CohereToolMessageV2": CohereToolMessageV2, "CohereToolResult": CohereToolResult, "CohereToolV2": CohereToolV2, "CohereUserMessage": CohereUserMessage, "CohereUserMessageV2": CohereUserMessageV2, "CompletionTokensDetails": CompletionTokensDetails, "ContentModerationConfiguration": ContentModerationConfiguration, "ContentModerationResult": ContentModerationResult, "DedicatedServingMode": DedicatedServingMode, "DeveloperMessage": DeveloperMessage, "Document": Document, "DocumentContent": DocumentContent, "DocumentRank": DocumentRank, "DocumentUrl": DocumentUrl, "EmbedTextDetails": EmbedTextDetails, "EmbedTextResult": EmbedTextResult, "Function": Function, "FunctionCall": FunctionCall, "FunctionDefinition": FunctionDefinition, "GenerateTextDetails": GenerateTextDetails, "GenerateTextResult": GenerateTextResult, "GeneratedText": GeneratedText, "GenericChatRequest": GenericChatRequest, "GenericChatResponse": GenericChatResponse, "GroundingChunk": GroundingChunk, "GroundingMetadata": GroundingMetadata, "GroundingSupport": GroundingSupport, "GroundingSupportSegment": GroundingSupportSegment, "GroundingWebChunk": GroundingWebChunk, "GuardrailConfigs": GuardrailConfigs, "GuardrailsInput": GuardrailsInput, "GuardrailsResults": GuardrailsResults, "GuardrailsTextInput": GuardrailsTextInput, "ImageContent": ImageContent, "ImageUrl": ImageUrl, "JsonObjectResponseFormat": JsonObjectResponseFormat, "JsonSchemaResponseFormat": JsonSchemaResponseFormat, "LlamaLlmInferenceRequest": LlamaLlmInferenceRequest, "LlamaLlmInferenceResponse": LlamaLlmInferenceResponse, "LlmInferenceRequest": LlmInferenceRequest, "LlmInferenceResponse": LlmInferenceResponse, "LogProbability": LogProbability, "Logprobs": Logprobs, "Message": Message, "OnDemandServingMode": OnDemandServingMode, "PersonallyIdentifiableInformationConfiguration": PersonallyIdentifiableInformationConfiguration, "PersonallyIdentifiableInformationResult": PersonallyIdentifiableInformationResult, "Prediction": Prediction, "PromptInjectionConfiguration": PromptInjectionConfiguration, "PromptInjectionProtectionResult": PromptInjectionProtectionResult, "PromptTokensDetails": PromptTokensDetails, "RerankTextDetails": RerankTextDetails, "RerankTextResult": RerankTextResult, "ResponseFormat": ResponseFormat, "ResponseJsonSchema": ResponseJsonSchema, "SearchEntryPoint": SearchEntryPoint, "SearchQuery": SearchQuery, "ServingMode": ServingMode, "StaticContent": StaticContent, "StreamOptions": StreamOptions, "SummarizeTextDetails": SummarizeTextDetails, "SummarizeTextResult": SummarizeTextResult, "SystemMessage": SystemMessage, "TextContent": TextContent, "TextResponseFormat": TextResponseFormat, "TokenLikelihood": TokenLikelihood, "ToolCall": ToolCall, "ToolChoice": ToolChoice, "ToolChoiceAuto": ToolChoiceAuto, "ToolChoiceFunction": ToolChoiceFunction, "ToolChoiceNone": ToolChoiceNone, "ToolChoiceRequired": ToolChoiceRequired, "ToolDefinition": ToolDefinition, "ToolMessage": ToolMessage, "UrlCitation": UrlCitation, "Usage": Usage, "UserMessage": UserMessage, "VideoContent": VideoContent, "VideoUrl": VideoUrl, "WebSearchOptions": WebSearchOptions }
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings