Skip to content

Commit 31c2963

Browse files
committed
remove placehodler
1 parent 28f729c commit 31c2963

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

firebase-ai/api.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ package com.google.firebase.ai.type {
12571257
}
12581258

12591259
public final class UsageMetadata {
1260-
ctor @Deprecated public UsageMetadata(int promptTokenCount, Integer? candidatesTokenCount, int totalTokenCount, java.util.List<com.google.firebase.ai.type.ModalityTokenCount> promptTokensDetails, java.util.List<com.google.firebase.ai.type.ModalityTokenCount> candidatesTokensDetails, int thoughtsTokenCount, int toolUsePromptTokenCount, java.util.List<com.google.firebase.ai.type.ModalityTokenCount> toolUsePromptTokensDetails);
1260+
ctor @Deprecated public UsageMetadata(int promptTokenCount, Integer? candidatesTokenCount, int totalTokenCount, java.util.List<com.google.firebase.ai.type.ModalityTokenCount> promptTokensDetails, java.util.List<com.google.firebase.ai.type.ModalityTokenCount> candidatesTokensDetails, int thoughtsTokenCount);
12611261
method public Integer? getCandidatesTokenCount();
12621262
method public java.util.List<com.google.firebase.ai.type.ModalityTokenCount> getCandidatesTokensDetails();
12631263
method public int getPromptTokenCount();

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/UsageMetadata.kt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ internal constructor(
4242
public val candidatesTokensDetails: List<ModalityTokenCount>,
4343
public val thoughtsTokenCount: Int,
4444
public val toolUsePromptTokenCount: Int,
45-
public val toolUsePromptTokensDetails: List<ModalityTokenCount>,
46-
placeholder: Unit
45+
public val toolUsePromptTokensDetails: List<ModalityTokenCount>
4746
) {
4847

4948
@Deprecated("Not intended for public use")
@@ -53,19 +52,16 @@ internal constructor(
5352
totalTokenCount: Int,
5453
promptTokensDetails: List<ModalityTokenCount>,
5554
candidatesTokensDetails: List<ModalityTokenCount>,
56-
thoughtsTokenCount: Int,
57-
toolUsePromptTokenCount: Int,
58-
toolUsePromptTokensDetails: List<ModalityTokenCount>
55+
thoughtsTokenCount: Int
5956
) : this(
6057
promptTokenCount,
6158
candidatesTokenCount,
6259
totalTokenCount,
6360
promptTokensDetails,
6461
candidatesTokensDetails,
6562
thoughtsTokenCount,
66-
toolUsePromptTokenCount,
67-
toolUsePromptTokensDetails,
68-
Unit
63+
0,
64+
emptyList()
6965
)
7066

7167
@Serializable

0 commit comments

Comments
 (0)