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/commonMain/kotlin/dev/shreyaspatil/ai/client/generativeai/type/Tool.kt b/generativeai/src/commonMain/kotlin/dev/shreyaspatil/ai/client/generativeai/type/Tool.kt index 2b178150..dd6d3c13 100644 --- a/generativeai/src/commonMain/kotlin/dev/shreyaspatil/ai/client/generativeai/type/Tool.kt +++ b/generativeai/src/commonMain/kotlin/dev/shreyaspatil/ai/client/generativeai/type/Tool.kt @@ -27,6 +27,6 @@ class Tool( val codeExecution: JSONObject? = null, ) { companion object { - val CODE_EXECUTION = Tool(codeExecution = JSONObject()) + @JvmField val CODE_EXECUTION = Tool(codeExecution = JSONObject()) } }