prompt/prompt-executor/prompt-executor-clients/prompt-executor-google-client/src/commonTest/kotlin/ai/koog/prompt/executor/clients/google/structure/GoogleSimpleJsonSchemaGeneratorTest.kt [22:75]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @Serializable @SerialName("WeatherForecast") @LLMDescription("Weather forecast for a given location") data class WeatherForecast( @property:LLMDescription("Temperature in Celsius") val temperature: Int, @property:LLMDescription("Weather conditions (e.g., sunny, cloudy, rainy)") val conditions: String = "sunny", @property:LLMDescription("Chance of precipitation in percentage") val precipitation: Int?, @property:LLMDescription("Coordinates of the location") val latLon: LatLon, @property:LLMDescription("Pollution level") val pollution: Pollution, @property:LLMDescription("List of news articles") val news: List ) { @Serializable @SerialName("LatLon") data class LatLon( @property:LLMDescription("Latitude of the location") val lat: Double, @property:LLMDescription("Longitude of the location") val lon: Double ) @Serializable @SerialName("WeatherNews") data class WeatherNews( @property:LLMDescription("Title of the news article") val title: String, @property:LLMDescription("Link to the news article") val link: String ) @Suppress("unused") @SerialName("Pollution") @Serializable enum class Pollution { @SerialName("None") None, @SerialName("LOW") Low, @SerialName("MEDIUM") Medium, @SerialName("HIGH") High } } @Test - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - prompt/prompt-executor/prompt-executor-clients/prompt-executor-openai-client-base/src/commonTest/kotlin/ai/koog/prompt/executor/clients/openai/structure/OpenAIBasicJsonSchemaGeneratorTest.kt [23:76]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @Serializable @SerialName("WeatherForecast") @LLMDescription("Weather forecast for a given location") data class WeatherForecast( @property:LLMDescription("Temperature in Celsius") val temperature: Int, @property:LLMDescription("Weather conditions (e.g., sunny, cloudy, rainy)") val conditions: String = "sunny", @property:LLMDescription("Chance of precipitation in percentage") val precipitation: Int?, @property:LLMDescription("Coordinates of the location") val latLon: LatLon, @property:LLMDescription("Pollution level") val pollution: Pollution, @property:LLMDescription("List of news articles") val news: List ) { @Serializable @SerialName("LatLon") data class LatLon( @property:LLMDescription("Latitude of the location") val lat: Double, @property:LLMDescription("Longitude of the location") val lon: Double ) @Serializable @SerialName("WeatherNews") data class WeatherNews( @property:LLMDescription("Title of the news article") val title: String, @property:LLMDescription("Link to the news article") val link: String ) @Suppress("unused") @SerialName("Pollution") @Serializable enum class Pollution { @SerialName("None") None, @SerialName("LOW") Low, @SerialName("MEDIUM") Medium, @SerialName("HIGH") High } } @Test - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -