Skip to content

Commit

Permalink
feat: Automated regeneration of AIPlatform client (#12658)
Browse files Browse the repository at this point in the history
Auto-created at 2024-12-07 13:14:16 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Dec 7, 2024
1 parent 836986a commit b5d16ca
Show file tree
Hide file tree
Showing 52 changed files with 3,060 additions and 48 deletions.
2 changes: 1 addition & 1 deletion clients/ai_platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_ai_platform, "~> 0.24"}]
[{:google_api_ai_platform, "~> 0.25"}]
end
```

Expand Down
812 changes: 770 additions & 42 deletions clients/ai_platform/lib/google_api/ai_platform/v1/api/projects.ex

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.AIPlatform.V1 do
API client metadata for GoogleApi.AIPlatform.V1.
"""

@discovery_revision "20241119"
@discovery_revision "20241203"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
* `toolNameMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolNameMatchInput.t`, *default:* `nil`) - Input for tool name match metric.
* `toolParameterKeyMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKeyMatchInput.t`, *default:* `nil`) - Input for tool parameter key match metric.
* `toolParameterKvMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchInput.t`, *default:* `nil`) - Input for tool parameter key value match metric.
* `trajectoryAnyOrderMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput.t`, *default:* `nil`) - Input for trajectory match any order metric.
* `trajectoryExactMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInput.t`, *default:* `nil`) - Input for trajectory exact match metric.
* `trajectoryInOrderMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput.t`, *default:* `nil`) - Input for trajectory in order match metric.
* `trajectoryPrecisionInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInput.t`, *default:* `nil`) - Input for trajectory precision metric.
* `trajectoryRecallInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInput.t`, *default:* `nil`) - Input for trajectory recall metric.
* `trajectorySingleToolUseInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInput.t`, *default:* `nil`) - Input for trajectory single tool use metric.
"""

use GoogleApi.Gax.ModelBase
Expand Down Expand Up @@ -110,6 +116,23 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
| nil,
:toolParameterKvMatchInput =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchInput.t()
| nil,
:trajectoryAnyOrderMatchInput =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput.t()
| nil,
:trajectoryExactMatchInput =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInput.t()
| nil,
:trajectoryInOrderMatchInput =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput.t()
| nil,
:trajectoryPrecisionInput =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInput.t()
| nil,
:trajectoryRecallInput =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInput.t() | nil,
:trajectorySingleToolUseInput =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInput.t()
| nil
}

Expand Down Expand Up @@ -193,6 +216,30 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
field(:toolParameterKvMatchInput,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchInput
)

field(:trajectoryAnyOrderMatchInput,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput
)

field(:trajectoryExactMatchInput,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInput
)

field(:trajectoryInOrderMatchInput,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput
)

field(:trajectoryPrecisionInput,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInput
)

field(:trajectoryRecallInput,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInput
)

field(:trajectorySingleToolUseInput,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInput
)
end

defimpl Poison.Decoder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
* `toolNameMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolNameMatchResults.t`, *default:* `nil`) - Results for tool name match metric.
* `toolParameterKeyMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKeyMatchResults.t`, *default:* `nil`) - Results for tool parameter key match metric.
* `toolParameterKvMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchResults.t`, *default:* `nil`) - Results for tool parameter key value match metric.
* `trajectoryAnyOrderMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults.t`, *default:* `nil`) - Result for trajectory any order match metric.
* `trajectoryExactMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchResults.t`, *default:* `nil`) - Result for trajectory exact match metric.
* `trajectoryInOrderMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults.t`, *default:* `nil`) - Result for trajectory in order match metric.
* `trajectoryPrecisionResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionResults.t`, *default:* `nil`) - Result for trajectory precision metric.
* `trajectoryRecallResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallResults.t`, *default:* `nil`) - Results for trajectory recall metric.
* `trajectorySingleToolUseResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseResults.t`, *default:* `nil`) - Results for trajectory single tool use metric.
"""

use GoogleApi.Gax.ModelBase
Expand Down Expand Up @@ -111,6 +117,23 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
| nil,
:toolParameterKvMatchResults =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchResults.t()
| nil,
:trajectoryAnyOrderMatchResults =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults.t()
| nil,
:trajectoryExactMatchResults =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchResults.t()
| nil,
:trajectoryInOrderMatchResults =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults.t()
| nil,
:trajectoryPrecisionResults =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionResults.t()
| nil,
:trajectoryRecallResults =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallResults.t() | nil,
:trajectorySingleToolUseResults =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseResults.t()
| nil
}

Expand Down Expand Up @@ -199,6 +222,30 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
field(:toolParameterKvMatchResults,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchResults
)

field(:trajectoryAnyOrderMatchResults,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults
)

field(:trajectoryExactMatchResults,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchResults
)

field(:trajectoryInOrderMatchResults,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults
)

field(:trajectoryPrecisionResults,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionResults
)

field(:trajectoryRecallResults,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallResults
)

field(:trajectorySingleToolUseResults,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseResults
)
end

defimpl Poison.Decoder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig
* `presencePenalty` (*type:* `number()`, *default:* `nil`) - Optional. Positive penalties.
* `responseLogprobs` (*type:* `boolean()`, *default:* `nil`) - Optional. If true, export the logprobs results in response.
* `responseMimeType` (*type:* `String.t`, *default:* `nil`) - Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.
* `responseModalities` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The modalities of the response.
* `responseSchema` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema.t`, *default:* `nil`) - Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response.
* `routingConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfigRoutingConfig.t`, *default:* `nil`) - Optional. Routing configuration.
* `seed` (*type:* `integer()`, *default:* `nil`) - Optional. Seed.
* `speechConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SpeechConfig.t`, *default:* `nil`) - Optional. The speech generation config.
* `stopSequences` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Stop sequences.
* `temperature` (*type:* `number()`, *default:* `nil`) - Optional. Controls the randomness of predictions.
* `tokenResolution` (*type:* `String.t`, *default:* `nil`) - Optional. If specified, the token resolution specified will be used.
* `topK` (*type:* `number()`, *default:* `nil`) - Optional. If specified, top-k sampling will be used.
* `topP` (*type:* `number()`, *default:* `nil`) - Optional. If specified, nucleus sampling will be used.
"""
Expand All @@ -49,14 +52,18 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig
:presencePenalty => number() | nil,
:responseLogprobs => boolean() | nil,
:responseMimeType => String.t() | nil,
:responseModalities => list(String.t()) | nil,
:responseSchema =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema.t() | nil,
:routingConfig =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfigRoutingConfig.t()
| nil,
:seed => integer() | nil,
:speechConfig =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SpeechConfig.t() | nil,
:stopSequences => list(String.t()) | nil,
:temperature => number() | nil,
:tokenResolution => String.t() | nil,
:topK => number() | nil,
:topP => number() | nil
}
Expand All @@ -69,15 +76,18 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig
field(:presencePenalty)
field(:responseLogprobs)
field(:responseMimeType)
field(:responseModalities, type: :list)
field(:responseSchema, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema)

field(:routingConfig,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfigRoutingConfig
)

field(:seed)
field(:speechConfig, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SpeechConfig)
field(:stopSequences, type: :list)
field(:temperature)
field(:tokenResolution)
field(:topK)
field(:topP)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ImportRagFilesCon
* `partialFailureBigquerySink` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1BigQueryDestination.t`, *default:* `nil`) - The BigQuery destination to write partial failures to. It should be a bigquery table resource name (e.g. "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the table does not exist, it will be created with the expected schema. If the table exists, the schema will be validated and data will be added to this existing table. Deprecated. Prefer to use `import_result_bq_sink`.
* `partialFailureGcsSink` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GcsDestination.t`, *default:* `nil`) - The Cloud Storage path to write partial failures to. Deprecated. Prefer to use `import_result_gcs_sink`.
* `ragFileTransformationConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileTransformationConfig.t`, *default:* `nil`) - Specifies the transformation config for RagFiles.
* `sharePointSources` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources.t`, *default:* `nil`) - SharePoint sources.
* `slackSource` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SlackSource.t`, *default:* `nil`) - Slack channels with their corresponding access tokens.
"""

Expand All @@ -47,6 +48,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ImportRagFilesCon
:ragFileTransformationConfig =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileTransformationConfig.t()
| nil,
:sharePointSources =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources.t() | nil,
:slackSource =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SlackSource.t() | nil
}
Expand All @@ -72,6 +75,10 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ImportRagFilesCon
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileTransformationConfig
)

field(:sharePointSources,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources
)

field(:slackSource, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SlackSource)
end

Expand Down
Loading

0 comments on commit b5d16ca

Please sign in to comment.