Gitiles
Code Review
Sign In
code.v1.dodo.cloud
/
sketch
/
7013e9ee282ef58104f91d64d85d4aec62f9c022
/
.
/
claudetool
/
util.go
blob: 88136e4abc07c2afdaee2d331c0fee0b4e095683 [
file
] [
log
] [
blame
]
Philip Zeyliger
72252cb
2025-05-10 17:00:08 -0700
[
diff
] [
blame
]
1
package claudetool
2
3
import (
4
"sketch.dev/llm"
5
)
6
7
// ContentToString extracts text from []llm.Content if available
8
func ContentToString(content []llm.Content) string {
9
if len(content) == 0 {
10
return ""
11
}
12
return content[0].Text
13
}