Skip to content

Commit 65a9a1d

Browse files
feat: Automated regeneration of Dialogflow client (googleapis#12467)
Auto-created at 2024-11-02 13:18:39 +0000 using the toys pull request generator.
1 parent d837e08 commit 65a9a1d

File tree

5 files changed

+72
-3
lines changed

5 files changed

+72
-3
lines changed

clients/dialogflow/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_dialogflow, "~> 0.87"}]
14+
[{:google_api_dialogflow, "~> 0.88"}]
1515
end
1616
```
1717

clients/dialogflow/lib/google_api/dialogflow/v3/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Dialogflow.V3 do
2020
API client metadata for GoogleApi.Dialogflow.V3.
2121
"""
2222

23-
@discovery_revision "20241019"
23+
@discovery_revision "20241025"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/dialogflow/lib/google_api/dialogflow/v3/model/google_cloud_dialogflow_cx_v3_generator.ex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Generator do
2222
## Attributes
2323
2424
* `displayName` (*type:* `String.t`, *default:* `nil`) - Required. The human-readable name of the generator, unique within the agent. The prompt contains pre-defined parameters such as $conversation, $last-user-utterance, etc. populated by Dialogflow. It can also contain custom placeholders which will be resolved during fulfillment.
25+
* `modelParameter` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3GeneratorModelParameter.t`, *default:* `nil`) - Parameters passed to the LLM to configure its behavior.
2526
* `name` (*type:* `String.t`, *default:* `nil`) - The unique identifier of the generator. Must be set for the Generators.UpdateGenerator method. Generators.CreateGenerate populates the name automatically. Format: `projects//locations//agents//generators/`.
2627
* `placeholders` (*type:* `list(GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3GeneratorPlaceholder.t)`, *default:* `nil`) - Optional. List of custom placeholders in the prompt text.
2728
* `promptText` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Phrase.t`, *default:* `nil`) - Required. Prompt for the LLM model.
@@ -31,6 +32,9 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Generator do
3132

3233
@type t :: %__MODULE__{
3334
:displayName => String.t() | nil,
35+
:modelParameter =>
36+
GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3GeneratorModelParameter.t()
37+
| nil,
3438
:name => String.t() | nil,
3539
:placeholders =>
3640
list(GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3GeneratorPlaceholder.t())
@@ -39,6 +43,11 @@ defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Generator do
3943
}
4044

4145
field(:displayName)
46+
47+
field(:modelParameter,
48+
as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3GeneratorModelParameter
49+
)
50+
4251
field(:name)
4352

4453
field(:placeholders,
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3GeneratorModelParameter do
19+
@moduledoc """
20+
Parameters to be passed to the LLM. If not set, default values will be used.
21+
22+
## Attributes
23+
24+
* `maxDecodeSteps` (*type:* `integer()`, *default:* `nil`) - The maximum number of tokens to generate.
25+
* `temperature` (*type:* `number()`, *default:* `nil`) - The temperature used for sampling. Temperature sampling occurs after both topP and topK have been applied. Valid range: [0.0, 1.0] Low temperature = less random. High temperature = more random.
26+
* `topK` (*type:* `integer()`, *default:* `nil`) - If set, the sampling process in each step is limited to the top_k tokens with highest probabilities. Valid range: [1, 40] or 1000+. Small topK = less random. Large topK = more random.
27+
* `topP` (*type:* `number()`, *default:* `nil`) - If set, only the tokens comprising the top top_p probability mass are considered. If both top_p and top_k are set, top_p will be used for further refining candidates selected with top_k. Valid range: (0.0, 1.0]. Small topP = less random. Large topP = more random.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:maxDecodeSteps => integer() | nil,
34+
:temperature => number() | nil,
35+
:topK => integer() | nil,
36+
:topP => number() | nil
37+
}
38+
39+
field(:maxDecodeSteps)
40+
field(:temperature)
41+
field(:topK)
42+
field(:topP)
43+
end
44+
45+
defimpl Poison.Decoder,
46+
for: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3GeneratorModelParameter do
47+
def decode(value, options) do
48+
GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3GeneratorModelParameter.decode(
49+
value,
50+
options
51+
)
52+
end
53+
end
54+
55+
defimpl Poison.Encoder,
56+
for: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3GeneratorModelParameter do
57+
def encode(value, options) do
58+
GoogleApi.Gax.ModelBase.encode(value, options)
59+
end
60+
end

clients/dialogflow/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Dialogflow.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.87.0"
21+
@version "0.88.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)