MCPcopy Create free account
hub / github.com/coder/coder / isAssistantRole

Function isAssistantRole

internal/googleopenai/thought_signature.go:141–144  ·  view source on GitHub ↗

Gemini can serialize assistant messages with its native "model" role.

(role any)

Source from the content-addressed store, hash-verified

139
140// Gemini can serialize assistant messages with its native "model" role.
141func isAssistantRole(role any) bool {
142 roleValue, _ := role.(string)
143 return roleValue == "assistant" || roleValue == "model"
144}
145
146// Real provider signatures are preserved when present.
147func ensureThoughtSignature(toolCall map[string]any) bool {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected