-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_koog_image.kt
More file actions
23 lines (19 loc) · 836 Bytes
/
test_koog_image.kt
File metadata and controls
23 lines (19 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import ai.koog.prompt.message.Message
import ai.koog.prompt.dsl.Prompt
import ai.koog.agents.core.agent.AIAgent
import ai.koog.prompt.executor.clients.openai.OpenAIModels
import ai.koog.prompt.executor.llms.all.simpleOpenAIExecutor
// Test script to understand Koog image handling
fun main() {
println("Testing Koog AI image capabilities...")
// Try to create a message with image
// This will help us understand the proper API for image handling
try {
val imageMessage = Message.text("Analyze this image")
println("Text message created successfully")
// Look for image-related methods
// val imageMessage = Message.image("path/to/image") // This might be the correct way
} catch (e: Exception) {
println("Error creating message: ${e.message}")
}
}