Skip to main content

Module utils

Module utils 

Source

Macros§

execute_function_calls
Provide all functions to be called execute_function_calls!(session, f1, f2...)Returns vec![Result of f2, Result of f2 …] if function don’t return type Result, it always return Result::Ok(value)Session struct is automatically updated with FunctionResponse only for Ok result

Structs§

MarkdownToParts
Converts markdown to parts considering ![image](link) means Gemini will be see the images too. link can be URL or file path.
MarkdownToPartsBuilder

Traits§

GeminiSchema
Trait for types that can generate a Gemini-compatible JSON schema.

Attribute Macros§

gemini_function
gemini_schema