|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.aiplatform.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Actions are parts of events that are executed by the agent. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Vertex AI API. For a detailed explanation see: |
| 24 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 25 | + * </p> |
| 26 | + * |
| 27 | + * @author Google, Inc. |
| 28 | + */ |
| 29 | +@SuppressWarnings("javadoc") |
| 30 | +public final class GoogleCloudAiplatformV1EventActions extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Optional. Indicates that the event is updating an artifact. key is the filename, value is the |
| 34 | + * version. |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private java.util.Map<String, java.lang.Integer> artifactDelta; |
| 39 | + |
| 40 | + /** |
| 41 | + * Optional. The agent is escalating to a higher level agent. |
| 42 | + * The value may be {@code null}. |
| 43 | + */ |
| 44 | + @com.google.api.client.util.Key |
| 45 | + private java.lang.Boolean escalate; |
| 46 | + |
| 47 | + /** |
| 48 | + * Optional. Will only be set by a tool response indicating tool request euc. Struct key is the |
| 49 | + * function call id since one function call response (from model) could correspond to multiple |
| 50 | + * function calls. Struct value is the required auth config, which can be another struct. |
| 51 | + * The value may be {@code null}. |
| 52 | + */ |
| 53 | + @com.google.api.client.util.Key |
| 54 | + private java.util.Map<String, java.lang.Object> requestedAuthConfigs; |
| 55 | + |
| 56 | + /** |
| 57 | + * Optional. If true, it won't call model to summarize function response. Only used for |
| 58 | + * function_response event. |
| 59 | + * The value may be {@code null}. |
| 60 | + */ |
| 61 | + @com.google.api.client.util.Key |
| 62 | + private java.lang.Boolean skipSummarization; |
| 63 | + |
| 64 | + /** |
| 65 | + * Optional. Indicates that the event is updating the state with the given delta. |
| 66 | + * The value may be {@code null}. |
| 67 | + */ |
| 68 | + @com.google.api.client.util.Key |
| 69 | + private java.util.Map<String, java.lang.Object> stateDelta; |
| 70 | + |
| 71 | + /** |
| 72 | + * Optional. If set, the event transfers to the specified agent. |
| 73 | + * The value may be {@code null}. |
| 74 | + */ |
| 75 | + @com.google.api.client.util.Key |
| 76 | + private java.lang.String transferAgent; |
| 77 | + |
| 78 | + /** |
| 79 | + * Optional. Indicates that the event is updating an artifact. key is the filename, value is the |
| 80 | + * version. |
| 81 | + * @return value or {@code null} for none |
| 82 | + */ |
| 83 | + public java.util.Map<String, java.lang.Integer> getArtifactDelta() { |
| 84 | + return artifactDelta; |
| 85 | + } |
| 86 | + |
| 87 | + /** |
| 88 | + * Optional. Indicates that the event is updating an artifact. key is the filename, value is the |
| 89 | + * version. |
| 90 | + * @param artifactDelta artifactDelta or {@code null} for none |
| 91 | + */ |
| 92 | + public GoogleCloudAiplatformV1EventActions setArtifactDelta(java.util.Map<String, java.lang.Integer> artifactDelta) { |
| 93 | + this.artifactDelta = artifactDelta; |
| 94 | + return this; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * Optional. The agent is escalating to a higher level agent. |
| 99 | + * @return value or {@code null} for none |
| 100 | + */ |
| 101 | + public java.lang.Boolean getEscalate() { |
| 102 | + return escalate; |
| 103 | + } |
| 104 | + |
| 105 | + /** |
| 106 | + * Optional. The agent is escalating to a higher level agent. |
| 107 | + * @param escalate escalate or {@code null} for none |
| 108 | + */ |
| 109 | + public GoogleCloudAiplatformV1EventActions setEscalate(java.lang.Boolean escalate) { |
| 110 | + this.escalate = escalate; |
| 111 | + return this; |
| 112 | + } |
| 113 | + |
| 114 | + /** |
| 115 | + * Optional. Will only be set by a tool response indicating tool request euc. Struct key is the |
| 116 | + * function call id since one function call response (from model) could correspond to multiple |
| 117 | + * function calls. Struct value is the required auth config, which can be another struct. |
| 118 | + * @return value or {@code null} for none |
| 119 | + */ |
| 120 | + public java.util.Map<String, java.lang.Object> getRequestedAuthConfigs() { |
| 121 | + return requestedAuthConfigs; |
| 122 | + } |
| 123 | + |
| 124 | + /** |
| 125 | + * Optional. Will only be set by a tool response indicating tool request euc. Struct key is the |
| 126 | + * function call id since one function call response (from model) could correspond to multiple |
| 127 | + * function calls. Struct value is the required auth config, which can be another struct. |
| 128 | + * @param requestedAuthConfigs requestedAuthConfigs or {@code null} for none |
| 129 | + */ |
| 130 | + public GoogleCloudAiplatformV1EventActions setRequestedAuthConfigs(java.util.Map<String, java.lang.Object> requestedAuthConfigs) { |
| 131 | + this.requestedAuthConfigs = requestedAuthConfigs; |
| 132 | + return this; |
| 133 | + } |
| 134 | + |
| 135 | + /** |
| 136 | + * Optional. If true, it won't call model to summarize function response. Only used for |
| 137 | + * function_response event. |
| 138 | + * @return value or {@code null} for none |
| 139 | + */ |
| 140 | + public java.lang.Boolean getSkipSummarization() { |
| 141 | + return skipSummarization; |
| 142 | + } |
| 143 | + |
| 144 | + /** |
| 145 | + * Optional. If true, it won't call model to summarize function response. Only used for |
| 146 | + * function_response event. |
| 147 | + * @param skipSummarization skipSummarization or {@code null} for none |
| 148 | + */ |
| 149 | + public GoogleCloudAiplatformV1EventActions setSkipSummarization(java.lang.Boolean skipSummarization) { |
| 150 | + this.skipSummarization = skipSummarization; |
| 151 | + return this; |
| 152 | + } |
| 153 | + |
| 154 | + /** |
| 155 | + * Optional. Indicates that the event is updating the state with the given delta. |
| 156 | + * @return value or {@code null} for none |
| 157 | + */ |
| 158 | + public java.util.Map<String, java.lang.Object> getStateDelta() { |
| 159 | + return stateDelta; |
| 160 | + } |
| 161 | + |
| 162 | + /** |
| 163 | + * Optional. Indicates that the event is updating the state with the given delta. |
| 164 | + * @param stateDelta stateDelta or {@code null} for none |
| 165 | + */ |
| 166 | + public GoogleCloudAiplatformV1EventActions setStateDelta(java.util.Map<String, java.lang.Object> stateDelta) { |
| 167 | + this.stateDelta = stateDelta; |
| 168 | + return this; |
| 169 | + } |
| 170 | + |
| 171 | + /** |
| 172 | + * Optional. If set, the event transfers to the specified agent. |
| 173 | + * @return value or {@code null} for none |
| 174 | + */ |
| 175 | + public java.lang.String getTransferAgent() { |
| 176 | + return transferAgent; |
| 177 | + } |
| 178 | + |
| 179 | + /** |
| 180 | + * Optional. If set, the event transfers to the specified agent. |
| 181 | + * @param transferAgent transferAgent or {@code null} for none |
| 182 | + */ |
| 183 | + public GoogleCloudAiplatformV1EventActions setTransferAgent(java.lang.String transferAgent) { |
| 184 | + this.transferAgent = transferAgent; |
| 185 | + return this; |
| 186 | + } |
| 187 | + |
| 188 | + @Override |
| 189 | + public GoogleCloudAiplatformV1EventActions set(String fieldName, Object value) { |
| 190 | + return (GoogleCloudAiplatformV1EventActions) super.set(fieldName, value); |
| 191 | + } |
| 192 | + |
| 193 | + @Override |
| 194 | + public GoogleCloudAiplatformV1EventActions clone() { |
| 195 | + return (GoogleCloudAiplatformV1EventActions) super.clone(); |
| 196 | + } |
| 197 | + |
| 198 | +} |
0 commit comments