typed_llm 0.1.2 copy "typed_llm: ^0.1.2" to clipboard
typed_llm: ^0.1.2 copied to clipboard

Type-safe, validated, structured output from LLM providers (OpenAI, Gemini, Claude) via generated JSON Schemas. No dart:mirrors, no runtime reflection.

0.1.2 #

  • Add a "How it works" workflow diagram to the README (build-time codegen vs. runtime extraction, including the validation-retry loop).

0.1.1 #

  • Shorten the package description to fit pub.dev's 60–180 character scoring guideline (no functional changes).

0.1.0 #

Initial release.

  • JsonSchema model and SchemaValidator — a provider-agnostic JSON Schema representation and a validator with detailed, path-qualified errors.
  • @LlmSchema() / @LlmField(description:, optional:) annotations, consumed by the typed_llm_generator build_runner generator.
  • Extractor / ExtractorConfig — validation-retry-with-feedback and HTTP-retry-with-backoff on top of any LlmProvider.
  • TypedLlmException hierarchy: SchemaValidationException, ProviderException, MalformedJsonException, ExtractionTimeoutException.
  • Providers: OpenAiProvider (Structured Outputs strict mode), GeminiProvider (responseSchema), ClaudeProvider (forced tool use), and OpenAiCompatibleProvider (Ollama/Groq/vLLM/etc., with a supportsStrictSchema flag falling back to JSON mode + a schema-in-prompt instruction).
0
likes
0
points
267
downloads

Publisher

verified publisherdiyalotech.com

Weekly Downloads

Type-safe, validated, structured output from LLM providers (OpenAI, Gemini, Claude) via generated JSON Schemas. No dart:mirrors, no runtime reflection.

Repository (GitHub)
View/report issues

Topics

#llm #json-schema #structured-output #openai #gemini

License

unknown (license)

Dependencies

http, meta

More

Packages that depend on typed_llm