textured library
A Dart package to use LLMs to parse text into pre-defined data structures.
Classes
- GcpAuthenticator
- Handles Google Cloud Platform authentication for Gemini API
- GeminiConfig
- Configuration class for Gemini LLM API calls
- GeminiLlmCaller
- LLM caller implementation for Google Gemini API
- InputTextReader
- A reader for input text files containing natural language descriptions.
- JsonSchema
- Represents a complete JSON Schema with all its properties and metadata.
- JsonSchemaReader
- A reader for JSON Schema files.
- LlmCaller
- Abstract base class for LLM calling implementations
- LlmResponse
- Represents a response from an LLM call
- OllamaConfig
- Configuration for Ollama LLM calls
- OllamaLlmCaller
- Concrete implementation of LlmCaller for Ollama API
- PromptGenerator
- A generator for LLM prompts that combines input text with JSON schema definitions to create structured prompts for extracting data into predefined formats.
- SchemaProperty
- Represents a JSON Schema property with its type, constraints, and metadata.
- ValidatingLlmCaller
- Decorator for LlmCaller that validates LLM responses against JSON schemas
- ValidationResult
- Result of JSON schema validation
Enums
- AuthMethod
- Authentication method type
Exceptions / Errors
- AuthenticationException
- Exception thrown when authentication fails
- LlmException
- Exception thrown when LLM operations fail