diff --git a/.changes/common/doctor-detail-balloon-crib.json b/.changes/common/doctor-detail-balloon-crib.json new file mode 100644 index 00000000..22ad120f --- /dev/null +++ b/.changes/common/doctor-detail-balloon-crib.json @@ -0,0 +1 @@ +{"type":"MINOR","changes":["Make Tools.CODE_EXECUTION more naturally accessible in java"]} diff --git a/.changes/generativeai/cabbage-discussion-bag-dog.json b/.changes/generativeai/cabbage-discussion-bag-dog.json new file mode 100644 index 00000000..81d6b872 --- /dev/null +++ b/.changes/generativeai/cabbage-discussion-bag-dog.json @@ -0,0 +1 @@ +{"type":"MAJOR","changes":["Make Tools.CODE_EXECUTION more naturally accessible in java"]} diff --git a/generativeai/src/main/java/com/google/ai/client/generativeai/type/Tool.kt b/generativeai/src/main/java/com/google/ai/client/generativeai/type/Tool.kt index 602ebdf5..46caa451 100644 --- a/generativeai/src/main/java/com/google/ai/client/generativeai/type/Tool.kt +++ b/generativeai/src/main/java/com/google/ai/client/generativeai/type/Tool.kt @@ -30,6 +30,6 @@ class Tool( val codeExecution: JSONObject? = null, ) { companion object { - val CODE_EXECUTION = Tool(codeExecution = JSONObject()) + @JvmField val CODE_EXECUTION = Tool(codeExecution = JSONObject()) } }