GCPGenApi
chat
Perform a chat operation using parameters.
GCPGenApi.chat(params: Dict[str, Union[str, int]]) -> objectParameters
params: A dictionary containing parameters for the chat operation.Returns
An object representing the chat result.summarizeText
Summarize the given text.
GCPGenApi.summarizeText(text: str) -> 'Result'Parameters
text: The text to be summarized.Returns
A 'Result' object representing the summarized text.classifyText
Classify the given text based on input classes.
Parameters
Returns
ams
Perform AMS (Answer Matching System) operation on the given text.
Parameters
Returns
generateEmbedding
Generate embedding for the given text.
Parameters
Returns
generateImageInBucket
Generate image in a GCS bucket based on the prompt.
Parameters
Returns
generateImageAsByte
Generate image as bytes based on the prompt.
Parameters
Returns
generateCode
Generate code based on the prompt.
Parameters
Returns
text
Generate text based on the prompt.
Parameters
Returns
extractEntitiesFromTextList
Extract entities from a list of texts based on the prompt.
Parameters
Returns
extractEntitiesFromText
Extract entities from a single text based on the prompt.
Parameters
Returns
vertexAiGetAnswer
Get an answer from Vertex AI based on the question and datastore ID.
Parameters
Returns
Last updated