org.llm4s.types
Comprehensive type aliases and newtypes for the LLM4S library.
Key Features:
- Core result types and error handling
- ID newtypes for type safety
- Async and streaming type aliases
- Configuration and metadata types
- Tool and MCP related types
- Future extensibility for various domains
- Consistent and clear type definitions
- Type safety without performance cost (AnyVal newtypes)
- Consistent naming patterns across the library
- Clear distinction between sync/async operations
- Extensible for future requirements
- Backwards compatibility with legacy types
Attributes
Members list
Packages
Type members
Classlikes
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for API keys (prevents accidental logging)
Type-safe wrapper for API keys (prevents accidental logging)
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for artifact store keys
Type-safe wrapper for artifact store keys
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ArtifactKey.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for cache keys
Type-safe wrapper for cache keys
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for code task IDs
Type-safe wrapper for code task IDs
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for completion IDs
Type-safe wrapper for completion IDs
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CompletionId.type
Type-safe wrapper for compression target ratios with validation
Type-safe wrapper for compression target ratios with validation
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CompressionTarget.type
Type-safe wrapper for content size in bytes with validation
Type-safe wrapper for content size in bytes with validation
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ContentSize.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for conversation IDs
Type-safe wrapper for conversation IDs
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ConversationId.type
Type-safe wrapper for directory paths
Type-safe wrapper for directory paths
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DirectoryPath.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
EstimationAccuracy.type
Information about externalized content
Information about externalized content
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Type-safe wrapper for file paths
Type-safe wrapper for file paths
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Type-safe wrapper for headroom percentage with validation
Type-safe wrapper for headroom percentage with validation
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HeadroomPercent.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Future extensibility types. These types are placeholders for future extensibility.
Future extensibility types. These types are placeholders for future extensibility.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for JWT tokens
Type-safe wrapper for JWT tokens
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for MCP client names
Type-safe wrapper for MCP client names
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for MCP protocol version
Type-safe wrapper for MCP protocol version
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for MCP server names
Type-safe wrapper for MCP server names
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for message IDs
Type-safe wrapper for message IDs
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type alias for metric name
Type alias for metric name
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for LLM model names
Type-safe wrapper for LLM model names
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Validation and smart constructors for type-safe IDs and names. These objects provide methods to create and validate type-safe IDs and names, ensuring they meet specific criteria. They also provide common constants for frequently used models and providers. These methods return Result types for error handling, allowing users to create type-safe IDs and names with confidence that they are valid. This approach ensures type safety without runtime overhead, and provides a clear and consistent API for creating and validating IDs and names.
Validation and smart constructors for type-safe IDs and names. These objects provide methods to create and validate type-safe IDs and names, ensuring they meet specific criteria. They also provide common constants for frequently used models and providers. These methods return Result types for error handling, allowing users to create type-safe IDs and names with confidence that they are valid. This approach ensures type safety without runtime overhead, and provides a clear and consistent API for creating and validating IDs and names.
Attributes
Type-safe wrapper for OAuth tokens
Type-safe wrapper for OAuth tokens
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Type-safe wrapper for organization IDs
Type-safe wrapper for organization IDs
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Pagination information for large result sets
Pagination information for large result sets
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for project IDs
Type-safe wrapper for project IDs
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for provider names
Type-safe wrapper for provider names
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ProviderName.type
Type-safe wrapper for request IDs for tracing
Type-safe wrapper for request IDs for tracing
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type alias for search query
Type alias for search query
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SemanticBlockId.type
Type-safe wrapper for session IDs
Type-safe wrapper for session IDs
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for template names
Type-safe wrapper for template names
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for token estimates with accuracy indicators
Type-safe wrapper for token estimates with accuracy indicators
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TokenEstimate.type
Type-safe wrapper for tool call IDs
Type-safe wrapper for tool call IDs
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ToolCallId.type
Type-safe wrapper for tool names
Type-safe wrapper for tool names
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for trace IDs for distributed tracing
Type-safe wrapper for trace IDs for distributed tracing
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Syntax: Try/Option/Future to Result conversions
Syntax: Try/Option/Future to Result conversions
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Type alias for URL string with validation
Type alias for URL string with validation
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Type-safe wrapper for workspace IDs
Type-safe wrapper for workspace IDs
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Types
Type alias for async streaming completions
Type alias for async streaming completions
Attributes
Async result type for Future-based operations
Async result type for Future-based operations
Attributes
Type alias for authentication credentials
Type alias for authentication credentials
Attributes
Type alias for semantic block priority (higher = more important to preserve)
Type alias for semantic block priority (higher = more important to preserve)
Attributes
Type alias for byte count
Type alias for byte count
Attributes
Type alias for cache configuration
Type alias for cache configuration
Attributes
Type alias for cache TTL (time to live) in seconds
Type alias for cache TTL (time to live) in seconds
Attributes
Type alias for cached value with metadata
Type alias for cached value with metadata
Attributes
Type alias for cancellation token
Type alias for cancellation token
Attributes
Type alias for code generation context
Type alias for code generation context
Attributes
Type alias for completion streaming with callback
Type alias for completion streaming with callback
Attributes
Type alias for streaming completion chunks
Type alias for streaming completion chunks
Attributes
Type alias for compression ratio (0.0 to 1.0, lower = more compression)
Type alias for compression ratio (0.0 to 1.0, lower = more compression)
Attributes
Type alias for configuration loading result
Type alias for configuration loading result
Attributes
Type alias for configuration section
Type alias for configuration section
Attributes
Type alias for configuration validation result
Type alias for configuration validation result
Attributes
Type alias for context window size in semantic blocks
Type alias for context window size in semantic blocks
Attributes
Type alias for duration in milliseconds
Type alias for duration in milliseconds
Attributes
Type alias for effective token budget (after applying headroom)
Type alias for effective token budget (after applying headroom)
Attributes
Type alias for endpoint configuration
Type alias for endpoint configuration
Attributes
Type alias for environment variable map
Type alias for environment variable map
Attributes
Type alias for error handling callback
Type alias for error handling callback
Attributes
Type alias for externalization threshold in bytes
Type alias for externalization threshold in bytes
Attributes
Type alias for file content
Type alias for file content
Attributes
Type alias for file metadata
Type alias for file metadata
Attributes
Type alias for generated code result
Type alias for generated code result
Attributes
Type alias for HTTP headers
Type alias for HTTP headers
Attributes
Type alias for HTTP status code
Type alias for HTTP status code
Attributes
Type alias for JSON values
Type alias for JSON values
Attributes
Type alias for JSON arrays
Type alias for JSON arrays
Attributes
Type alias for JSON objects
Type alias for JSON objects
Attributes
Type alias for MCP capabilities
Type alias for MCP capabilities
Attributes
Type alias for MCP server configuration
Type alias for MCP server configuration
Attributes
Type alias for metric tags
Type alias for metric tags
Attributes
Type alias for metric value
Type alias for metric value
Attributes
Type alias for metrics collection
Type alias for metrics collection
Attributes
Multi-value result for operations returning collections
Multi-value result for operations returning collections
Attributes
Optional result for operations that may not return a value
Optional result for operations that may not return a value
Attributes
Paginated result for large datasets
Paginated result for large datasets
Attributes
Type alias for tool parameter validation
Type alias for tool parameter validation
Attributes
Type alias for percentage (0.0 to 100.0)
Type alias for percentage (0.0 to 100.0)
Attributes
Type alias for permission set
Type alias for permission set
Attributes
Type alias for probability (0.0 to 1.0)
Type alias for probability (0.0 to 1.0)
Attributes
Type alias for progress callback
Type alias for progress callback
Attributes
Standard synchronous result type used throughout the library
Standard synchronous result type used throughout the library
Attributes
Type alias for role definition
Type alias for role definition
Attributes
Type alias for search filters
Type alias for search filters
Attributes
Type alias for search result
Type alias for search result
Attributes
Type alias for secrets map
Type alias for secrets map
Attributes
Streaming result for real-time data
Streaming result for real-time data
Attributes
Type alias for streaming with callback
Type alias for streaming with callback
Attributes
Type alias for system message token count
Type alias for system message token count
Attributes
Type alias for temperature parameter (0.0 to 2.0)
Type alias for temperature parameter (0.0 to 2.0)
Attributes
Type alias for template variables
Type alias for template variables
Attributes
Type alias for text file content
Type alias for text file content
Attributes
Type alias for timeout in milliseconds
Type alias for timeout in milliseconds
Attributes
Type alias for timestamp (Unix epoch milliseconds)
Type alias for timestamp (Unix epoch milliseconds)
Attributes
Type alias for timing measurement
Type alias for timing measurement
Attributes
Type alias for token budget
Type alias for token budget
Attributes
Type alias for token count
Type alias for token count
Attributes
Type alias for tool execution context
Type alias for tool execution context
Attributes
Type alias for tool execution result
Type alias for tool execution result
Attributes
Type alias for tool permissions
Type alias for tool permissions
Attributes
Type alias for tool registry
Type alias for tool registry
Attributes
Type alias for tool schema definition
Type alias for tool schema definition
Attributes
Try-based result for exception handling boundaries
Try-based result for exception handling boundaries
Attributes
Validated result with accumulating errors (non-empty chain)
Validated result with accumulating errors (non-empty chain)