flutter_leap_sdk library

Classes

ChatMessage
Represents a single message in a conversation with role and content.
Conversation
Represents a conversation session with persistent history and context.
DownloadProgress
Represents the progress of a model download operation.
FlutterLeapSdkService
GenerationOptions
Configuration options for text generation.
GenerationStats
Statistics about a completed generation.
LeapFunction
Represents a callable function definition.
LeapFunctionCall
Represents a function call made by the model.
LeapFunctionParameter
Represents a function call parameter.
LeapLogger
MessageResponse
Sealed class representing different types of message responses during generation.
MessageResponseChunk
Represents a chunk of generated text.
MessageResponseComplete
Represents the completion of message generation.
MessageResponseFunctionCalls
Represents function calls in a message response.
MessageResponseReasoningChunk
Represents a chunk of reasoning content.
ModelInfo
Information about a LEAP SDK model bundle.
ModelLoadingOptions
Configuration options for model loading.
ProgressThrottler

Enums

GenerationFinishReason
Represents different types of generation finish reasons.
MessageRole
Enum defining the role of a message in a conversation.

Exceptions / Errors

DownloadException
Exception thrown during model download operations.
FlutterLeapSdkException
Base exception class for all Flutter LEAP SDK errors.
GenerationException
Exception thrown when text generation fails.
ModelLoadingException
Exception thrown when model loading fails.
ModelNotLoadedException
Exception thrown when attempting operations on an unloaded model.