contents = $contents; } /** * @return GoogleCloudAiplatformV1Content[] */ public function getContents() { return $this->contents; } /** * Generation config. * * @param GoogleCloudAiplatformV1GenerationConfig $generationConfig */ public function setGenerationConfig(GoogleCloudAiplatformV1GenerationConfig $generationConfig) { $this->generationConfig = $generationConfig; } /** * @return GoogleCloudAiplatformV1GenerationConfig */ public function getGenerationConfig() { return $this->generationConfig; } /** * The model name. * * @param string $model */ public function setModel($model) { $this->model = $model; } /** * @return string */ public function getModel() { return $this->model; } /** * Per request settings for blocking unsafe content. Enforced on * GenerateContentResponse.candidates. * * @param GoogleCloudAiplatformV1SafetySetting[] $safetySettings */ public function setSafetySettings($safetySettings) { $this->safetySettings = $safetySettings; } /** * @return GoogleCloudAiplatformV1SafetySetting[] */ public function getSafetySettings() { return $this->safetySettings; } /** * The user provided system instructions for the model. Note: only text should * be used in parts and content in each part will be in a separate paragraph. * * @param GoogleCloudAiplatformV1Content $systemInstruction */ public function setSystemInstruction(GoogleCloudAiplatformV1Content $systemInstruction) { $this->systemInstruction = $systemInstruction; } /** * @return GoogleCloudAiplatformV1Content */ public function getSystemInstruction() { return $this->systemInstruction; } /** * Tool config. This config is shared for all tools provided in the request. * * @param GoogleCloudAiplatformV1ToolConfig $toolConfig */ public function setToolConfig(GoogleCloudAiplatformV1ToolConfig $toolConfig) { $this->toolConfig = $toolConfig; } /** * @return GoogleCloudAiplatformV1ToolConfig */ public function getToolConfig() { return $this->toolConfig; } /** * A list of `Tools` the model may use to generate the next response. A `Tool` * is a piece of code that enables the system to interact with external * systems to perform an action, or set of actions, outside of knowledge and * scope of the model. * * @param GoogleCloudAiplatformV1Tool[] $tools */ public function setTools($tools) { $this->tools = $tools; } /** * @return GoogleCloudAiplatformV1Tool[] */ public function getTools() { return $this->tools; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage');