-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(api): Add AnthropicTest case for new data classes
- refactor move class out New data classes ContentMessage and Usage added in the anthropic module require test coverage. Add AnthropicTest cases to cover these data classes.
- Loading branch information
Showing
3 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...ient-core/src/commonMain/kotlin/com/tddworks/anthropic/api/messages/api/ContentMessage.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.tddworks.anthropic.api.messages.api | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ContentMessage(val text: String, val type: String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...hropic-client-core/src/commonMain/kotlin/com/tddworks/anthropic/api/messages/api/Usage.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.tddworks.anthropic.api.messages.api | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class Usage( | ||
@SerialName("input_tokens") | ||
val inputTokens: Int? = null, | ||
@SerialName("output_tokens") | ||
val outputTokens: Int? = null, | ||
) |