llmgleam/gemini
Types
pub type Candidate {
Candidate(
content: Content,
finish_reason: option.Option(String),
)
}
Constructors
-
Candidate(content: Content, finish_reason: option.Option(String))
pub type Content {
Content(parts: List(Part), role: option.Option(types.Role))
}
Constructors
-
Content(parts: List(Part), role: option.Option(types.Role))
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)