llmgleam/gemini
Types
pub type GeminiClientInternal {
GeminiClientInternal(api_key: String)
}
Constructors
-
GeminiClientInternal(api_key: String)
Values
pub fn generate_content(
client: GeminiClientInternal,
model: String,
messages: List(types.ChatMessage),
) -> Result(types.Completion, types.CompletionError)
pub fn role_to_str(role: types.Role) -> String