View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CountTokensRequest (google_api_ai_platform v0.13.0)

Request message for PredictionService.CountTokens.

Attributes

  • contents (type: list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t), default: nil) - Optional. Input content.
  • instances (type: list(any()), default: nil) - Optional. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
  • model (type: String.t, default: nil) - Optional. The name of the publisher model requested to serve the prediction. Format: projects/{project}/locations/{location}/publishers/*/models/*
  • systemInstruction (type: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t, default: nil) - Optional. 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.
  • tools (type: list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Tool.t), default: nil) - Optional. 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CountTokensRequest{
  contents:
    [GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t()] | nil,
  instances: [any()] | nil,
  model: String.t() | nil,
  systemInstruction:
    GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t() | nil,
  tools: [GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Tool.t()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.