C# utility for type-safe transformation via LLM inference
Top 79.4% on sourcepulse
ArtificialCast provides a C# utility for type-safe object transformation and generation powered by local Large Language Models (LLMs). It aims to replace manual mapping code with LLM-driven inference, allowing seamless conversion between disparate data structures based solely on type definitions and prompts. This is targeted at developers exploring the implications of "virtual software" where behavior is inferred rather than explicitly coded.
How It Works
The core mechanism involves serializing input objects, generating a JSON schema for the target type, and then prompting a local LLM (configured via ArtificialCast.Model
) to perform the transformation. This approach leverages the LLM's reasoning capabilities to infer missing values and adapt between types without explicit mapping rules, offering a "zero-config" experience for transformations.
Quick Start & Requirements
dotnet restore
.gemma3:4b
via ollama pull gemma3:4b
).Highlighted Details
AC<TIn, TOut>
(transform), AF<T>
(factory), AM<T1, T2, TOut>
(merge), AS<TIn, TOut1, TOut2>
(split), and AQ<TOut>
(query).Maintenance & Community
The project is maintained by Zorokee. The README indicates it's a demonstration of AI engineering trends and is not intended for production use.
Licensing & Compatibility
Limitations & Caveats
The project is explicitly designed as a demonstration and is fundamentally unsafe for any real-world application. Its outputs are described as "plausible lies" and "hallucinations," with failure modes that mimic success, making it unreliable for critical tasks.
2 months ago
Inactive