Resource: PromptTemplate
Represents a Prompt Template resource.
| JSON representation |
|---|
{ "name": string, "templateId": string, "displayName": string, "templateString": string, "createTime": string, "updateTime": string, "stateChangeTime": string, "etag": string, "locked": boolean } |
| Fields | |
|---|---|
name |
Identifier. The resource name of the PromptTemplate. Format: projects/{project}/locations/{location}/templates/{promptTemplate} |
templateId |
Output only. Immutable. The unique ID of the PromptTemplate, which is the final component of the PromptTemplate's resource name. |
displayName |
Optional. The display name of the PromptTemplate. |
templateString |
Required. The DotPrompt raw template string. |
createTime |
Output only. Timestamp when the PromptTemplate was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. Timestamp when the PromptTemplate was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
stateChangeTime |
Output only. Timestamp when the PromptTemplate state was last changed. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
etag |
Optional. The etag of the PromptTemplate. If this is provided with an update request, it must match the server's etag for the operation to succeed. |
locked |
Output only. Indicates if the PromptTemplate has been locked for mutations. It is strongly recommended that PromptTemplates used in productgion Apps be locked to avoid accidental distruption to live apps. To modify a PromptTemplate that has been locked, a call to templates.modifyLock with lock=false is required first. |
Methods |
|
|---|---|
|
Creates a new PromptTemplate. |
|
Deletes a PromptTemplate. |
|
Gets a PromptTemplate. |
|
Lists PromptTemplates. |
|
Updates the Lock state on a PromptTemplate |
|
Updates a PromptTemplate. |
|
Generate content with multimodal inputs using a server-side prompt template. |
|
Perform an online prediction using a server-side prompt template. |
|
Generate content with multimodal inputs and streaming outputs using a server-side prompt template. |