Skip to content

Commit 414da2d

Browse files
committed
Fix formatting
1 parent e2b31ad commit 414da2d

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/internal/util/conversions.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ internal fun com.google.firebase.vertexai.common.shared.Part.toPublic(): Part {
231231
internal fun com.google.firebase.vertexai.common.server.CitationSources.toPublic() =
232232
Citation(startIndex = startIndex, endIndex = endIndex, uri = uri, license = license)
233233

234-
235234
internal fun com.google.firebase.vertexai.common.server.CitationMetadata.toPublic() =
236235
CitationMetadata(citationSources.map { it.toPublic() })
237236

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/Candidate.kt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,24 @@ internal constructor(
3939
/**
4040
* A collection of source attributions for a piece of content.
4141
*
42-
* @property citations A list of individual cited sources and the parts of the content to which they apply.
42+
* @property citations A list of individual cited sources and the parts of the content to which they
43+
* apply.
4344
*/
44-
class CitationMetadata
45-
internal constructor(
46-
val citations: List<Citation>
47-
)
45+
class CitationMetadata internal constructor(val citations: List<Citation>)
4846

4947
/**
5048
* Provides citation information for sourcing of content provided by the model between a given
5149
* [startIndex] and [endIndex].
5250
*
53-
* @property startIndex The inclusive beginning of a sequence in a model response that derives from a cited source.
54-
* @property endIndex The exclusive end of a sequence in a model response that derives from a cited source.
51+
* @property startIndex The inclusive beginning of a sequence in a model response that derives from
52+
* a cited source.
53+
* @property endIndex The exclusive end of a sequence in a model response that derives from a cited
54+
* source.
5555
* @property uri A link to the cited source, if available.
5656
* @property license The license the cited source work is distributed under, if specified.
5757
*/
58-
class Citation internal constructor(
58+
class Citation
59+
internal constructor(
5960
val startIndex: Int = 0,
6061
val endIndex: Int,
6162
val uri: String? = null,

firebase-vertexai/src/test/java/com/google/firebase/vertexai/StreamingSnapshotTests.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ internal class StreamingSnapshotTests {
169169

170170
withTimeout(testTimeout) {
171171
val responseList = responses.toList()
172-
responseList.any { it.candidates.any { it.citationMetadata?.citations?.isNotEmpty() ?: false} } shouldBe true
172+
responseList.any {
173+
it.candidates.any { it.citationMetadata?.citations?.isNotEmpty() ?: false }
174+
} shouldBe true
173175
}
174176
}
175177

0 commit comments

Comments
 (0)