palm_api library

Classes

CitationMetadata
A collection of source attributions for a piece of content.
CitationSource
A citation to a source for a portion of a specific response.
ContentFilter
CountMessageTokensRequest
Counts the number of tokens in the prompt sent to a model.
CountMessageTokensResponse
A response from CountMessageTokens.
DiscussService
DiscussService deals with all chat related API endpoints. It provides an organized way of interactively working with the language model API.
Embedding
EmbedTextRequest
EmbedTextResponse
Example
An input/output example used to instruct the Model.
GenerateMessageRequest
Request to generate a message.
GenerateMessageResponse
The response from the model.
GenerateTextRequest
GenerateTextResponse
GetModelRequest
Request for getting information about a specific Model.
ListModelsRequest
Request for listing all Models.
ListModelsResponse
Response from ListModel containing a paginated list of Models.
Message
The base unit of structured text.
MessagePrompt
All of the structured input text passed to the model as a prompt.
Model
ModelService
ModelService deals with all model related API endpoints, providing a higher level and organized way of managing models in the API.
PalmClient
PalmModel
SafetyFeedback
SafetyRating
SafetySetting
TextCompletion
TextPrompt
TextService
TextService deals with all message related API endpoints. It provides an organized way of interactively working with the language model API.